diff --git a/src/OberleisteApp.jsx b/src/OberleisteApp.jsx index 12b571a..b398843 100644 --- a/src/OberleisteApp.jsx +++ b/src/OberleisteApp.jsx @@ -84,8 +84,12 @@ const pillSelect = { fontSize: 10, } -// BarSelect: Icon roh links (kein Container) + pill-shaped Native-Select. -// joinedRight: rechte Pill-Kante flach, fuer Verkettung mit BarButton. +// BarSelect: Icon roh links + System-natives onChange(e.target.value)} - style={{ - width: '100%', height: '100%', minWidth: 0, - background: 'transparent', border: 'none', outline: 'none', - padding: '0 22px 0 12px', - fontSize: 11, color: 'var(--text-primary)', - appearance: 'none', WebkitAppearance: 'none', MozAppearance: 'none', - cursor: disabled ? 'not-allowed' : 'pointer', - }} - >{children} - - + ) } diff --git a/src/index.css b/src/index.css index 998b49b..e022e42 100644 --- a/src/index.css +++ b/src/index.css @@ -20,6 +20,10 @@ } :root { + /* Native OS-Controls (selects, scrollbars) sollen dem aktuellen Theme + folgen. Wert wird im prefers-color-scheme: dark Block ueberschrieben. */ + color-scheme: light; + /* === LIGHT MODE (RAPPORT cream + olive + deep green) === */ --bg-base: #e0dbd4; --bg-panel: #e0dbd4; @@ -75,6 +79,7 @@ /* === DARK MODE (Rhino-tonig) === */ @media (prefers-color-scheme: dark) { :root { + color-scheme: dark; --bg-base: #2a2a2a; --bg-panel: #2a2a2a; --bg-section: #2a2a2a;