Fix style issues on the cosmic style

This commit is contained in:
Florian Blasius 2024-01-16 15:16:04 +01:00
parent 1ca8ff517e
commit 2cf2a36b1d
4 changed files with 4 additions and 4 deletions

View file

@ -71,6 +71,7 @@ export component ComboBox {
pressed: base.pressed;
has-focus: base.has-focus;
has-hover: base.has-hover;
enabled: root.enabled;
}
}

View file

@ -19,12 +19,11 @@ export component ProgressIndicator {
background: CosmicPalette.neutral-6-background;
track := Rectangle {
opacity: 0.75;
width: !root.indeterminate ? parent.width * min(1, max(0, root.progress)) : parent.width;
height: 100%;
x: !root.indeterminate ? 0px : -parent.width + (parent.width * mod(animation-tick(), 2s) / 1s);
border-radius: parent.border-radius;
background: CosmicPalette.accent-background;
background: CosmicPalette.secondary-accent-background;
}
}
}

View file

@ -44,9 +44,8 @@ export component Slider {
y: vertical ? 0 : (parent.height - self.height) / 2;
width: vertical ? rail.width : thumb.x + (thumb.width / 2);
height: vertical ? thumb.y + (thumb.height / 2) : rail.height;
background: CosmicPalette.accent-background;
background: CosmicPalette.secondary-accent-background;
border-radius: rail.border-radius;
opacity: 0.75;
}
thumb := Rectangle {

View file

@ -53,6 +53,7 @@ export global CosmicPalette {
out property <brush> control-disabled: dark-color-scheme ? #212121 :#cfcfcf;
out property <brush> text-disabled: dark-color-scheme ? #707070 :#808080;
out property <brush> secondary-accent-background: dark-color-scheme ? #51a3ae : #367378;
}
export global Icons {