mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-10 15:52:58 -04:00
themes: incorporate theme registry, browser, dms URI scheme handling
This commit is contained in:
@@ -63,6 +63,7 @@ Singleton {
|
||||
property alias dankBarRightWidgetsModel: rightWidgetsModel
|
||||
|
||||
property string currentThemeName: "blue"
|
||||
property string currentThemeCategory: "generic"
|
||||
property string customThemeFile: ""
|
||||
property string matugenScheme: "scheme-tonal-spot"
|
||||
property bool runUserMatugenTemplates: true
|
||||
@@ -562,10 +563,12 @@ Singleton {
|
||||
|
||||
function applyStoredTheme() {
|
||||
if (typeof Theme !== "undefined") {
|
||||
Theme.currentThemeCategory = currentThemeCategory;
|
||||
Theme.switchTheme(currentThemeName, false, false);
|
||||
} else {
|
||||
Qt.callLater(function () {
|
||||
if (typeof Theme !== "undefined") {
|
||||
Theme.currentThemeCategory = currentThemeCategory;
|
||||
Theme.switchTheme(currentThemeName, false, false);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user