mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
themes: dont handle custom themes in onCompleted
- Defer entirley to FileView
This commit is contained in:
@@ -506,7 +506,7 @@ func (d *DebianDistribution) installAPTPackages(ctx context.Context, packages []
|
|||||||
|
|
||||||
d.log(fmt.Sprintf("Installing APT packages: %s", strings.Join(packages, ", ")))
|
d.log(fmt.Sprintf("Installing APT packages: %s", strings.Join(packages, ", ")))
|
||||||
|
|
||||||
args := []string{"apt-get", "install", "-y"}
|
args := []string{"DEBIAN_FRONTEND=noninteractive", "apt-get", "install", "-y"}
|
||||||
args = append(args, packages...)
|
args = append(args, packages...)
|
||||||
|
|
||||||
progressChan <- InstallProgressMsg{
|
progressChan <- InstallProgressMsg{
|
||||||
|
|||||||
@@ -128,21 +128,13 @@ Singleton {
|
|||||||
setDesiredTheme("image", rawWallpaperPath, isLight, iconTheme, selectedMatugenType);
|
setDesiredTheme("image", rawWallpaperPath, isLight, iconTheme, selectedMatugenType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (currentTheme !== "custom") {
|
||||||
let primaryColor;
|
const darkTheme = StockThemes.getThemeByName(currentTheme, false);
|
||||||
let matugenType;
|
const lightTheme = StockThemes.getThemeByName(currentTheme, true);
|
||||||
if (currentTheme === "custom") {
|
if (darkTheme && darkTheme.primary) {
|
||||||
if (customThemeData && customThemeData.primary) {
|
const stockColors = buildMatugenColorsFromTheme(darkTheme, lightTheme);
|
||||||
primaryColor = customThemeData.primary;
|
const themeData = isLight ? lightTheme : darkTheme;
|
||||||
matugenType = customThemeData.matugen_type;
|
setDesiredTheme("hex", themeData.primary, isLight, iconTheme, themeData.matugen_type, stockColors);
|
||||||
}
|
|
||||||
} else {
|
|
||||||
primaryColor = currentThemeData.primary;
|
|
||||||
matugenType = currentThemeData.matugen_type;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (primaryColor) {
|
|
||||||
setDesiredTheme("hex", primaryColor, isLight, iconTheme, matugenType);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user