Utils: Remove hard-coded installed GTK themes

This commit is contained in:
Romain Vigier
2022-04-05 12:07:19 +02:00
parent 92c219065c
commit 7bafe2c450
+1 -1
View File
@@ -73,7 +73,7 @@ function getInstalledResources(type) {
* @returns {Set<string>} A set containing all the installed GTK themes names. * @returns {Set<string>} A set containing all the installed GTK themes names.
*/ */
function getInstalledGtkThemes() { function getInstalledGtkThemes() {
const themes = new Set(['Adwaita', 'HighContrast', 'HighContrastInverse']); const themes = new Set();
getInstalledResources('themes').forEach(theme => { getInstalledResources('themes').forEach(theme => {
const version = [0, Gtk.MINOR_VERSION].find(gtkVersion => { const version = [0, Gtk.MINOR_VERSION].find(gtkVersion => {
if (gtkVersion % 2) if (gtkVersion % 2)