mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
3.5.435. More dark theme tweaks for notifications. Add color support to channel metadata. Add warning colors for stream latency. Closes #113
This commit is contained in:
parent
ac8250928c
commit
3b38d12859
8 changed files with 173 additions and 25 deletions
|
@ -8,8 +8,20 @@ var FFZ = window.FrankerFaceZ,
|
|||
// ---------------
|
||||
|
||||
FFZ.settings_info.player_stats = {
|
||||
type: "boolean",
|
||||
value: false,
|
||||
type: 'select',
|
||||
options: {
|
||||
0: ['Disabled', -2],
|
||||
'-1': ['Monochrome', -1],
|
||||
10: 'Warning Colors (10s+)',
|
||||
15: 'Warning Colors (15s+)',
|
||||
20: 'Warning Colors (20s+)',
|
||||
25: 'Warning Colors (25s+)',
|
||||
30: 'Warning Colors (30s+)',
|
||||
},
|
||||
|
||||
value: 0,
|
||||
process_value: utils.process_int(0, 0, -1),
|
||||
|
||||
no_mobile: true,
|
||||
|
||||
category: "Channel Metadata",
|
||||
|
|
|
@ -241,6 +241,7 @@ FFZ.prototype.setup_sidebar = function() {
|
|||
|
||||
// Navigation Component
|
||||
this.update_views('component:twitch-navigation', this.modify_navigation);
|
||||
this.update_views('component:recommended-channels', this.modify_recommended_channels);
|
||||
|
||||
// Navigation Service
|
||||
var NavService = utils.ember_lookup('service:navigation');
|
||||
|
@ -265,6 +266,16 @@ FFZ.prototype.setup_following_link = function() {
|
|||
}
|
||||
|
||||
|
||||
FFZ.prototype.modify_recommended_channels = function(component) {
|
||||
utils.ember_reopen_view(component, {
|
||||
ffz_init: function() {
|
||||
var el = this.get('element');
|
||||
el.classList.add('js-recommended-channels');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
FFZ.prototype.modify_navigation = function(component) {
|
||||
var f = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue