mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +00:00
4.20.24
* Changed: Tweak the brightness for custom accent colors to better match Twitch's defaults. * Fixed: Clean up more hard-coded colors from Twitch's CSS.
This commit is contained in:
parent
a5e2dd9ef2
commit
bd0c658acb
3 changed files with 33 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "frankerfacez",
|
"name": "frankerfacez",
|
||||||
"author": "Dan Salvato LLC",
|
"author": "Dan Salvato LLC",
|
||||||
"version": "4.20.23",
|
"version": "4.20.24",
|
||||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -14,14 +14,15 @@ import NORMALIZER_CSS_URL from 'site/styles/color_normalizer.scss';
|
||||||
const BAD_ROUTES = ['product', 'prime', 'turbo'];
|
const BAD_ROUTES = ['product', 'prime', 'turbo'];
|
||||||
|
|
||||||
const COLORS = [
|
const COLORS = [
|
||||||
-.4, -.35, -.3, -.25, -.2, -.15, -.1, -.05, // 1-8
|
-0.62, -0.578, -0.539, -0.469, -0.4, -0.32, -0.21, -0.098, // 1-8
|
||||||
0, // 9
|
0, // 9
|
||||||
.05, .1, .15, .2, .25, .3 // 10-15
|
0.08, 0.151, 0.212, 0.271, 0.31, 0.351 // 10-15
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
const ACCENT_COLORS = {
|
const ACCENT_COLORS = {
|
||||||
dark: {'c':{'accent': 9,'background-accent':8,'background-accent-alt':7,'background-accent-alt-2':6,'background-button':7,'background-button-active':7,'background-button-focus':8,'background-button-hover':8,'background-button-primary-active':7,'background-button-primary-default':9,'background-button-primary-hover':8,'background-graph':2,'background-graph-fill':8,'background-input-checkbox-checked':9,'background-input-checked':8,'background-interactable-active':9,'background-interactable-hover':8,'background-progress-countdown-status':9,'background-progress-status':9,'background-range-fill':9,'background-subscriber-stream-tag-active':4,'background-subscriber-stream-tag-default':4,'background-subscriber-stream-tag-hover':3,'background-toggle-checked':9,/*'background-tooltip':1,*/'background-top-nav':6,'border-brand':9,'border-button':7,'border-button-active':8,'border-button-focus':9,'border-button-hover':8,'border-input-checkbox-checked':9,'border-input-checkbox-focus':9,'border-input-focus':9,'border-interactable-selected':10,'border-subscriber-stream-tag':5,'border-tab-active':11,'border-tab-focus':11,'border-tab-hover':11,'border-toggle-focus':7,'border-toggle-hover':7,'border-whisper-incoming':10/*,'fill-brand':9*/,'text-button-text':8,'text-button-text-focus':'o1','text-button-text-hover':'o1','text-link':10,'text-link-active':10,'text-link-focus':10,'text-link-hover':10,'text-link-visited':10,'text-overlay-link-active':13,'text-overlay-link-focus':13,'text-overlay-link-hover':13,'text-tab-active':11,'background-chat':1,'background-chat-alt':3,'background-chat-header':2,'background-modal':3,'text-button-text-active':'o2'/*,'text-tooltip':1*/},'s':{'button-active':[8,'0 0 6px 0',''],'button-focus':[8,'0 0 6px 0',''],'input-focus':[8,'0 0 10px -2px',''],'interactable-focus':[8,'0 0 6px 0',''],'tab-focus':[11,'0 4px 6px -4px',''],'input':[5,'inset 0 0 0 1px','']}},
|
dark: {'c':{'accent': 9,'background-accent':8,'background-accent-alt':7,'background-accent-alt-2':6,'background-button':7,'background-button-active':7,'background-button-focus':8,'background-button-hover':8,'background-button-primary-active':7,'background-button-primary-default':9,'background-button-primary-hover':8,'background-graph':2,'background-graph-fill':8,'background-input-checkbox-checked':9,'background-input-checked':8,'background-interactable-active':9,'background-interactable-hover':8,'background-progress-countdown-status':9,'background-progress-status':9,'background-range-fill':9,'background-subscriber-stream-tag-active':4,'background-subscriber-stream-tag-default':4,'background-subscriber-stream-tag-hover':3,'background-toggle-checked':9,/*'background-tooltip':1,*/'background-top-nav':6,'border-brand':9,'border-button':7,'border-button-active':8,'border-button-focus':9,'border-button-hover':8,'border-input-checkbox-checked':9,'border-input-checkbox-focus':9,'border-input-focus':9,'border-interactable-selected':10,'border-subscriber-stream-tag':5,'border-tab-active':11,'border-tab-focus':11,'border-tab-hover':11,'border-toggle-focus':7,'border-toggle-hover':7,'border-whisper-incoming':10,'fill-brand':9,'text-button-text':8,'text-button-text-focus':'o1','text-button-text-hover':'o1','text-link':10,'text-link-active':10,'text-link-focus':10,'text-link-hover':10,'text-link-visited':10,'text-overlay-link-active':13,'text-overlay-link-focus':13,'text-overlay-link-hover':13,'text-tab-active':11,'background-chat':1,'background-chat-alt':3,'background-chat-header':2,'background-modal':3,'text-button-text-active':'o2'/*,'text-tooltip':1*/},'s':{'button-active':[8,'0 0 6px 0',''],'button-focus':[8,'0 0 6px 0',''],'input-focus':[8,'0 0 10px -2px',''],'interactable-focus':[8,'0 0 6px 0',''],'tab-focus':[11,'0 4px 6px -4px',''],'input':[5,'inset 0 0 0 1px','']}},
|
||||||
light: {'c':{'accent': 9,'background-accent':8,'background-accent-alt':7,'background-accent-alt-2':6,'background-button':7,'background-button-active':7,'background-button-focus':8,'background-button-hover':8,'background-button-primary-active':7,'background-button-primary-default':9,'background-button-primary-hover':8,'background-graph':15,'background-graph-fill':9,'background-input-checkbox-checked':9,'background-input-checked':8,'background-interactable-active':9,'background-interactable-hover':8,'background-progress-countdown-status':8,'background-progress-status':8,'background-range-fill':9,'background-subscriber-stream-tag-active':13,'background-subscriber-stream-tag-default':13,'background-subscriber-stream-tag-hover':14,'background-toggle-checked':9,/*'background-tooltip':1,*/'background-top-nav':7,'border-brand':9,'border-button':7,'border-button-active':8,'border-button-focus':9,'border-button-hover':8,'border-input-checkbox-checked':9,'border-input-checkbox-focus':9,'border-input-focus':9,'border-interactable-selected':9,'border-subscriber-stream-tag':10,'border-tab-active':8,'border-tab-focus':8,'border-tab-hover':8,'border-toggle-focus':8,'border-toggle-hover':8,'border-whisper-incoming':10/*,'fill-brand':9*/,'text-button-text':8,'text-button-text-focus':'o1','text-button-text-hover':'o1','text-link':8,'text-link-active':9,'text-link-focus':9,'text-link-hover':9,'text-link-visited':9,'text-overlay-link-active':13,'text-overlay-link-focus':13,'text-overlay-link-hover':13,'text-tab-active':8},'s':{'button-active':[8,'0 0 6px 0',''],'button-focus':[8,'0 0 6px 0',''],'input-focus':[10,'0 0 10px -2px',''],'interactable-focus':[8,'0 0 6px 1px',''],'tab-focus':[8,'0 4px 6px -4px','']}},
|
light: {'c':{'accent': 9,'background-accent':8,'background-accent-alt':7,'background-accent-alt-2':6,'background-button':7,'background-button-active':7,'background-button-focus':8,'background-button-hover':8,'background-button-primary-active':7,'background-button-primary-default':9,'background-button-primary-hover':8,'background-graph':15,'background-graph-fill':9,'background-input-checkbox-checked':9,'background-input-checked':8,'background-interactable-active':9,'background-interactable-hover':8,'background-progress-countdown-status':8,'background-progress-status':8,'background-range-fill':9,'background-subscriber-stream-tag-active':13,'background-subscriber-stream-tag-default':13,'background-subscriber-stream-tag-hover':14,'background-toggle-checked':9,/*'background-tooltip':1,*/'background-top-nav':7,'border-brand':9,'border-button':7,'border-button-active':8,'border-button-focus':9,'border-button-hover':8,'border-input-checkbox-checked':9,'border-input-checkbox-focus':9,'border-input-focus':9,'border-interactable-selected':9,'border-subscriber-stream-tag':10,'border-tab-active':8,'border-tab-focus':8,'border-tab-hover':8,'border-toggle-focus':8,'border-toggle-hover':8,'border-whisper-incoming':10,'fill-brand':9,'text-button-text':8,'text-button-text-focus':'o1','text-button-text-hover':'o1','text-link':8,'text-link-active':9,'text-link-focus':9,'text-link-hover':9,'text-link-visited':9,'text-overlay-link-active':13,'text-overlay-link-focus':13,'text-overlay-link-hover':13,'text-tab-active':8},'s':{'button-active':[8,'0 0 6px 0',''],'button-focus':[8,'0 0 6px 0',''],'input-focus':[10,'0 0 10px -2px',''],'interactable-focus':[8,'0 0 6px 1px',''],'tab-focus':[8,'0 4px 6px -4px','']}},
|
||||||
accent_dark: {'c':{'accent-hover':10,'accent':9,'accent-primary-1':1,'accent-primary-2':5,'accent-primary-3':6,'accent-primary-4':7,'accent-primary-5':8},'s':{}},
|
accent_dark: {'c':{'accent-hover':10,'accent':9,'accent-primary-1':1,'accent-primary-2':5,'accent-primary-3':6,'accent-primary-4':7,'accent-primary-5':8},'s':{}},
|
||||||
accent_light: {'c':{'accent-hover':10,'accent':9,'accent-primary-1':1,'accent-primary-2':5,'accent-primary-3':6,'accent-primary-4':7,'accent-primary-5':8},'s':{}}
|
accent_light: {'c':{'accent-hover':10,'accent':9,'accent-primary-1':1,'accent-primary-2':5,'accent-primary-3':6,'accent-primary-4':7,'accent-primary-5':8},'s':{}}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,22 +3,30 @@
|
||||||
.channel-header,
|
.channel-header,
|
||||||
.channel-root__right-column,
|
.channel-root__right-column,
|
||||||
.chat-room,
|
.chat-room,
|
||||||
|
.chat-viewers__pane,
|
||||||
|
.sunlight-tile,
|
||||||
.multi-stream-player-layout,
|
.multi-stream-player-layout,
|
||||||
.carousel-player-nav-arrow__container {
|
.carousel-player-nav-arrow__container {
|
||||||
background-color: var(--color-background-body) !important;
|
background-color: var(--color-background-body) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clmgr-table__row,
|
.clmgr-table__row,
|
||||||
|
.stream-manager--page-view .mosaic-window-body,
|
||||||
.room-upsell,
|
.room-upsell,
|
||||||
.video-card {
|
.video-card {
|
||||||
background-color: var(--color-background-base) !important;
|
background-color: var(--color-background-base) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.whispers-list-item__archive,
|
||||||
|
.whispers-list-item .whispers-list-item__archive-button,
|
||||||
|
.top-stats-tab:hover,
|
||||||
|
.whispers-list-item--selected,
|
||||||
.side-nav__overlay-wrapper,
|
.side-nav__overlay-wrapper,
|
||||||
.thread-header__title-bar-container--focused {
|
.thread-header__title-bar-container--focused {
|
||||||
background-color: var(--color-background-alt) !important;
|
background-color: var(--color-background-alt) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.whispers-list-item:hover .whispers-list-item__archive-button:hover,
|
||||||
.clmgr-table__row:hover,
|
.clmgr-table__row:hover,
|
||||||
.thread-header__title-bar-container,
|
.thread-header__title-bar-container,
|
||||||
.whispers-list-item:hover,
|
.whispers-list-item:hover,
|
||||||
|
@ -26,6 +34,11 @@
|
||||||
background-color: var(--color-background-alt-2) !important;
|
background-color: var(--color-background-alt-2) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.emote-picker__emote-link:hover {
|
||||||
|
background-color: var(--color-background-button-active) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-stats-tab,
|
||||||
.channel-header__user {
|
.channel-header__user {
|
||||||
color: var(--color-text-base) !important;
|
color: var(--color-text-base) !important;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +48,20 @@
|
||||||
.chat-line__status {
|
.chat-line__status {
|
||||||
color: var(--color-text-alt-2) !important;
|
color: var(--color-text-alt-2) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-viewers-list__button {
|
||||||
|
color: var(--color-text-link) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-stream-info-buttons {
|
||||||
|
box-shadow: 0 -2rem 1.5rem var(--color-background-base) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-action__not-edit-mode:not([disabled]) {
|
||||||
|
&:focus, &:hover {
|
||||||
|
background-color: var(--ffz-color-accent-8) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue