config: add clock font config
Also use mono font for lock media artist Add rubik to nix font deps
This commit is contained in:
parent
11fede05a7
commit
4b6d7916e6
6 changed files with 13 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ JsonObject {
|
||||||
property string sans: "Rubik"
|
property string sans: "Rubik"
|
||||||
property string mono: "CaskaydiaCove NF"
|
property string mono: "CaskaydiaCove NF"
|
||||||
property string material: "Material Symbols Rounded"
|
property string material: "Material Symbols Rounded"
|
||||||
|
property string clock: "Rubik"
|
||||||
}
|
}
|
||||||
|
|
||||||
component FontSize: JsonObject {
|
component FontSize: JsonObject {
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
++ lib.optional withCli caelestia-cli;
|
++ lib.optional withCli caelestia-cli;
|
||||||
|
|
||||||
fontconfig = makeFontsConf {
|
fontconfig = makeFontsConf {
|
||||||
fontDirectories = [material-symbols nerd-fonts.caskaydia-cove];
|
fontDirectories = [material-symbols rubik nerd-fonts.caskaydia-cove];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
in
|
in
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
inputsFrom = [shell];
|
inputsFrom = [shell];
|
||||||
packages = with pkgs; [material-symbols nerd-fonts.caskaydia-cove];
|
packages = with pkgs; [material-symbols rubik nerd-fonts.caskaydia-cove];
|
||||||
CAELESTIA_BD_PATH = "${shell}/bin/beat_detector";
|
CAELESTIA_BD_PATH = "${shell}/bin/beat_detector";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ Item {
|
||||||
text: root.timeComponents[0]
|
text: root.timeComponents[0]
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.extraLarge
|
font.pointSize: Appearance.font.size.extraLarge
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,6 +37,7 @@ Item {
|
||||||
text: "•••"
|
text: "•••"
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 0.9
|
font.pointSize: Appearance.font.size.extraLarge * 0.9
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
@ -44,6 +46,7 @@ Item {
|
||||||
text: root.timeComponents[1]
|
text: root.timeComponents[1]
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.extraLarge
|
font.pointSize: Appearance.font.size.extraLarge
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,6 +61,7 @@ Item {
|
||||||
text: root.timeComponents[2] ?? ""
|
text: root.timeComponents[2] ?? ""
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Appearance.font.size.large
|
font.pointSize: Appearance.font.size.large
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -69,6 +73,7 @@ Item {
|
||||||
text: Time.format("ddd, d")
|
text: Time.format("ddd, d")
|
||||||
color: Colours.palette.m3tertiary
|
color: Colours.palette.m3tertiary
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.weight: 500
|
font.weight: 500
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ ColumnLayout {
|
||||||
text: root.timeComponents[0]
|
text: root.timeComponents[0]
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -38,6 +39,7 @@ ColumnLayout {
|
||||||
text: ":"
|
text: ":"
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,6 +48,7 @@ ColumnLayout {
|
||||||
text: root.timeComponents[1]
|
text: root.timeComponents[1]
|
||||||
color: Colours.palette.m3secondary
|
color: Colours.palette.m3secondary
|
||||||
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 3 * root.centerScale)
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,6 +64,7 @@ ColumnLayout {
|
||||||
text: root.timeComponents[2] ?? ""
|
text: root.timeComponents[2] ?? ""
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 2 * root.centerScale)
|
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 2 * root.centerScale)
|
||||||
|
font.family: Appearance.font.family.clock
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ Item {
|
||||||
color: Colours.palette.m3primary
|
color: Colours.palette.m3primary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pointSize: Appearance.font.size.large
|
font.pointSize: Appearance.font.size.large
|
||||||
|
font.family: Appearance.font.family.mono
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue