Merge branch 'themes-accent' into shigusegubu

* themes-accent: (83 commits)
  fix and update changelog
  fix/remove contrast ratios
  removed base16-related code
  fix warning stylings
  fixed eslint, made `mod` work properly depending on context including in shadows
  Better Disabled buttons support. Mammal theme fixes. Implemented proper context-aware `mod` argument - now checks lightness of "variant" color. needs retesting tho
  updated preview to account for underlay
  update button toggled state, apply it to emoji reactions
  removed one color TODO
  add theme to list
  Kenomo (see: #624) theme. Ability to define link color for post contents. Fixes
  fix rgba function, whoops
  lint
  fix rgba css generation, add some tests to automatically verify that themes are generated properly
  fix transparent color not affecting downstream slots
  fix icons in menus
  improved selectedMenu again
  popover/selected menu improvements
  separate actual theme data from theme framework
  revert fgText -> text after some consideration. case was fixed already in other way
  ...
This commit is contained in:
Henry Jameson 2020-02-11 10:09:54 +02:00
commit 25f785770c
116 changed files with 2929 additions and 3047 deletions

View file

@ -5,6 +5,9 @@ const browserLocale = (window.navigator.language || 'en').split('-')[0]
export const defaultState = {
colors: {},
theme: undefined,
customTheme: undefined,
customThemeSource: undefined,
hideISP: false,
// bad name: actually hides posts of muted USERS
hideMutedPosts: undefined, // instance default
@ -95,10 +98,10 @@ const config = {
commit('setOption', { name, value })
switch (name) {
case 'theme':
setPreset(value, commit)
setPreset(value)
break
case 'customTheme':
applyTheme(value, commit)
applyTheme(value)
}
}
}