Add Flat-Remix-GTK theme support
This commit is contained in:
@@ -14,6 +14,7 @@ These themes have been tested and work:
|
|||||||
|
|
||||||
- Adwaita
|
- Adwaita
|
||||||
- Arc
|
- Arc
|
||||||
|
- Flat-Remix-GTK
|
||||||
- HighContrast
|
- HighContrast
|
||||||
- Matcha (thank you @Chrysostomus)
|
- Matcha (thank you @Chrysostomus)
|
||||||
- Materia
|
- Materia
|
||||||
|
|||||||
@@ -184,6 +184,13 @@ class Variants {
|
|||||||
variants.day = name.replace(/-Dark(?!er)/g, '');
|
variants.day = name.replace(/-Dark(?!er)/g, '');
|
||||||
variants.night = variants.day.replace('-Darker', '') + '-Dark';
|
variants.night = variants.day.replace('-Darker', '') + '-Dark';
|
||||||
}
|
}
|
||||||
|
else if ( name.includes('Flat-Remix-GTK') ) {
|
||||||
|
const isSolid = name.includes('-Solid');
|
||||||
|
const withoutBorder = name.includes('-NoBorder');
|
||||||
|
const basename = name.split('-').slice(0, 4).join('-');
|
||||||
|
variants.day = basename + (name.includes('-Darker') ? '-Darker' : '') + (isSolid ? '-Solid' : '');
|
||||||
|
variants.night = basename + (name.includes('-Darkest') ? '-Darkest' : '-Dark') + (isSolid ? '-Solid' : '') + (withoutBorder ? '-NoBorder' : '');
|
||||||
|
}
|
||||||
else if ( name.includes('Matcha') ) {
|
else if ( name.includes('Matcha') ) {
|
||||||
variants.day = name.replace(/-dark-/g, '-');
|
variants.day = name.replace(/-dark-/g, '-');
|
||||||
variants.night = variants.day.replace('Matcha-', 'Matcha-dark-');
|
variants.night = variants.day.replace('Matcha-', 'Matcha-dark-');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Night Theme Switcher",
|
"name": "Night Theme Switcher",
|
||||||
"description": "Automatically change the GTK theme to dark variant when Night Light activates.\n\nTHEME COMPATIBILITY:\nYour theme must have a `-dark` variant, e.g. `Adwaita` and `Adwaita-dark`.\nThese themes have been tested and work:\n- Adwaita\n- Arc\n- HighContrast\n- Matcha\n- Materia\n- Mojave\n- Vimix\n- Yaru\n\nLet me know if the theme you use works as well, or if it doesn't, I can try to make it work.\n\nDo you need to change your GNOME shell theme as well? Try Night Shell Switcher! https://extensions.gnome.org/extension/2356/night-shell-switcher/",
|
"description": "Automatically change the GTK theme to dark variant when Night Light activates.\n\nTHEME COMPATIBILITY:\nYour theme must have a `-dark` variant, e.g. `Adwaita` and `Adwaita-dark`.\nThese themes have been tested and work:\n- Adwaita\n- Arc\nFlat-Remix-GTK\n- HighContrast\n- Matcha\n- Materia\n- Mojave\n- Vimix\n- Yaru\n\nLet me know if the theme you use works as well, or if it doesn't, I can try to make it work.\n\nDo you need to change your GNOME shell theme as well? Try Night Shell Switcher! https://extensions.gnome.org/extension/2356/night-shell-switcher/",
|
||||||
"uuid": "nightthemeswitcher@romainvigier.fr",
|
"uuid": "nightthemeswitcher@romainvigier.fr",
|
||||||
"url": "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/",
|
"url": "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/",
|
||||||
"version": 14,
|
"version": 14,
|
||||||
|
|||||||
Reference in New Issue
Block a user