diff --git a/README.md b/README.md index 4620031..7e41506 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ These themes have been tested and work: - Adapta - Adwaita - Arc +- Canta - HighContrast - Matcha (thank you @Chrysostomus) - Materia diff --git a/src/extension.js b/src/extension.js index 33f7824..1cf723f 100644 --- a/src/extension.js +++ b/src/extension.js @@ -176,7 +176,7 @@ class Variants { variants.day = 'HighContrast'; variants.night = 'HighContrastInverse'; } - else if ( name.match(/Materia.*-compact/g) ) { + else if ( name.match(/(Canta|Materia).*-compact/g) ) { variants.day = name.replace(/-dark(?!er)/g, ''); variants.night = variants.day.replace(/(-light)?-compact/g, '-dark-compact'); } diff --git a/src/metadata.json b/src/metadata.json index 056ea15..fe11baa 100644 --- a/src/metadata.json +++ b/src/metadata.json @@ -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- Adapta\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- Adapta\n- Adwaita\n- Arc\n- Canta\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", "url": "https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/", "version": 14,