list item styling fixes

This commit is contained in:
Jakob Pinterits
2024-07-02 21:27:52 +02:00
parent b404dc80b6
commit 9ffab0291a
3 changed files with 10 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export class SwitcherBarComponent extends ComponentBase {
});
this.moveTween = new KineticTween({
acceleration: 150 * pixelsPerRem,
acceleration: 50 * pixelsPerRem,
});
// The marker needs updating when the element is resized

View File

@@ -2574,6 +2574,10 @@ $rio-input-box-small-label-spacing-top: 0.5rem;
.rio-heading-list-item {
pointer-events: none;
box-sizing: border-box;
margin-left: var(--rio-global-corner-radius-medium);
margin-top: 1rem;
margin-right: var(--rio-global-corner-radius-medium);
margin-bottom: 0.4rem;
}
.rio-custom-list-item {

View File

@@ -500,7 +500,11 @@ class Theme:
foreground=_derive_color(disabled_color, 0.4),
)
shadow_color = rio.Color.from_rgb(0.1, 0.1, 0.4, 0.3)
# Shadow color
if mode == "light":
shadow_color = rio.Color.from_rgb(0.1, 0.1, 0.4, 0.3)
else:
shadow_color = rio.Color.from_rgb(0, 0, 0, 0.4)
# Semantic colors
if success_color is None: