prismlauncher: add themes option
This commit is contained in:
committed by
Austin Horstman
parent
45e97d1e88
commit
2a7b54df12
@@ -1,3 +1,4 @@
|
||||
{
|
||||
prismlauncher-settings = ./settings.nix;
|
||||
prismlauncher-themes = ./themes.nix;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"colors": {
|
||||
"accent": "#7aa2f7",
|
||||
"background": "#1a1b26",
|
||||
"foreground": "#c0caf5"
|
||||
},
|
||||
"name": "Inline Theme"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
QWidget {
|
||||
font-family: "Inter";
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Theme Dir",
|
||||
"colors": {
|
||||
"background": "#1a1b26",
|
||||
"foreground": "#c0caf5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
QWidget {
|
||||
font-family: "Inter";
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.prismlauncher = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { };
|
||||
|
||||
themes = {
|
||||
theme-dir = ./theme-dir;
|
||||
|
||||
inline-theme = {
|
||||
theme = {
|
||||
name = "Inline Theme";
|
||||
colors = {
|
||||
accent = "#7aa2f7";
|
||||
background = "#1a1b26";
|
||||
foreground = "#c0caf5";
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
QWidget {
|
||||
font-family: "Inter";
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.local/share/PrismLauncher/themes/theme-dir/theme.json
|
||||
assertFileContent \
|
||||
home-files/.local/share/PrismLauncher/themes/theme-dir/theme.json \
|
||||
${./theme-dir/theme.json}
|
||||
assertFileExists home-files/.local/share/PrismLauncher/themes/theme-dir/themeStyle.css
|
||||
assertFileContent \
|
||||
home-files/.local/share/PrismLauncher/themes/theme-dir/themeStyle.css \
|
||||
${./theme-dir/themeStyle.css}
|
||||
|
||||
assertFileExists home-files/.local/share/PrismLauncher/themes/inline-theme/theme.json
|
||||
assertFileContent \
|
||||
home-files/.local/share/PrismLauncher/themes/inline-theme/theme.json \
|
||||
${./inline-theme.json}
|
||||
assertFileExists home-files/.local/share/PrismLauncher/themes/inline-theme/themeStyle.css
|
||||
assertFileContent \
|
||||
home-files/.local/share/PrismLauncher/themes/inline-theme/themeStyle.css \
|
||||
${./inline-themeStyle.css}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user