Add Layan theme support

This commit is contained in:
Romain Vigier
2020-02-13 18:39:31 +01:00
parent f58c4b4fa4
commit 3a308e8d41
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ These themes have been tested and work:
- Adwaita
- Arc
- HighContrast
- Layan
- Matcha (thank you @Chrysostomus)
- Materia
- Mojave
+4
View File
@@ -184,6 +184,10 @@ class Variants {
variants.day = name.replace(/-Dark(?!er)/g, '');
variants.night = variants.day.replace('-Darker', '') + '-Dark';
}
else if ( name.includes('Layan') ) {
variants.day = name.replace('-dark', '');
variants.night = variants.day.replace(/Layan(-light)?/g, 'Layan-dark');
}
else if ( name.includes('Matcha') ) {
variants.day = name.replace(/-dark-/g, '-');
variants.night = variants.day.replace('Matcha-', 'Matcha-dark-');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"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\n- HighContrast\n-Layan\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",
"url": "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/",
"version": 14,