Holds the SCSS for Bimp's media UI as embedded string constants (MediaScreen, MediaSpeaker, MediaRemote) and a helper that adds a fallback stylesheet to a panel when the real .scss file is not loaded. MediaRemote defines a design token set plus a remote-theme mixin used for both the dark and light palettes.
using System;
using System.Linq;
using Sandbox.UI;
namespace Bimp;
internal static class EmbeddedStyles
{
public static void EnsureLoaded( Panel panel, string fileName, string fallbackScss, string key )
{
if ( panel is null ) return;
var loaded = panel.AllStyleSheets.Any( s =>
s.FileName is not null &&
s.FileName.EndsWith( fileName, StringComparison.OrdinalIgnoreCase ) &&
s.Nodes.Count > 0 );
if ( !loaded )
panel.StyleSheet.AddInline( fallbackScss, key );
}
public const string MediaScreen = """
$accent: #4d90fc;
$accent-blue: #6891e0;
$accent-hover: #91b4ff;
$accent-soft: rgba( 145, 180, 255, 0.16 );
$accent-selected: #2d5da1;
$bg: #000;
$surface: rgba( 25, 30, 32, 0.90 );
$surface-btn: rgba( 33, 39, 41, 0.85 );
$border: #384042;
$text-primary: #f1f5f2;
$text-secondary: #dbe1df;
$text-muted: #acb6b2;
$warning: #f0b95b;
$danger: #e05555;
.mediascreen
{
width: 100%;
height: 100%;
background-color: $bg;
font-family: "Inter";
color: $text-primary;
position: relative;
overflow: hidden;
pointer-events: all;
.video
{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
i
{
font-family: "Material Symbols Outlined";
font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24;
}
.splash, .audio
{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient( to bottom, #191e20, #0e1214 );
> i
{
font-size: 200px;
color: $accent-blue;
opacity: 0.9;
}
.title
{
font-size: 72px;
font-weight: 700;
color: $text-primary;
margin-top: 20px;
text-align: center;
max-width: 85%;
}
.hint, .status
{
font-size: 36px;
color: $text-muted;
margin-top: 16px;
text-align: center;
max-width: 85%;
}
.hint
{
flex-direction: row;
align-items: center;
gap: 12px;
white-space: nowrap;
}
.status
{
color: $warning;
}
}
.audio
{
> i
{
font-size: 120px;
}
.title
{
font-size: 56px;
max-width: 85%;
justify-content: center;
// a title too long to fit scrolls from its start
&.overflowing
{
justify-content: flex-start;
}
}
.spectrumbars
{
width: 80%;
height: 35%;
margin-top: 40px;
}
// where the track is, for the Audio view of a video (the real progress bar is in the controls)
.audio-progress
{
width: 80%;
height: 8px;
margin-top: 24px;
border-radius: 4px;
background-color: rgba( 255, 255, 255, 0.14 );
.fill
{
height: 100%;
width: 0%;
border-radius: 4px;
background-color: $accent;
}
}
.audio-time
{
margin-top: 12px;
font-size: 32px;
color: $text-secondary;
font-variant-numeric: tabular-nums;
}
}
.loading
{
position: absolute;
left: 40px;
top: 40px;
padding: 12px 24px;
border-radius: 10px;
background-color: $surface;
border: 1px solid $border;
color: $text-primary;
font-size: 32px;
align-items: center;
gap: 12px;
i
{
color: $accent-blue;
}
}
// captions: centred near the bottom, above the controls while they're showing
.subs
{
position: absolute;
left: 10%;
right: 10%;
bottom: 90px;
flex-direction: column;
align-items: center;
pointer-events: none;
transition: bottom 0.2s ease;
.subs-line
{
margin-top: 6px;
padding: 6px 18px;
border-radius: 10px;
background-color: rgba( 25, 30, 32, 0.88 );
border: 1px solid rgba( 56, 64, 66, 0.7 );
font-size: 44px;
line-height: 1.2;
text-align: center;
color: $text-primary;
}
}
&.controls-visible .subs
{
bottom: 260px;
}
.notice
{
position: absolute;
top: 40px;
right: 40px;
max-width: 60%;
padding: 16px 28px;
border-radius: 10px;
background-color: rgba( 224, 85, 85, 0.92 );
border: 1px solid rgba( 255, 255, 255, 0.16 );
color: $text-primary;
font-size: 32px;
font-weight: 600;
}
.osd
{
position: absolute;
left: 0;
right: 0;
bottom: 0;
flex-direction: column;
padding: 40px 48px 32px 48px;
background: linear-gradient( to top, rgba( 14, 18, 20, 0.94 ), rgba( 14, 18, 20, 0 ) );
opacity: 0;
transition: opacity 0.3s ease;
.meta
{
flex-direction: row;
align-items: flex-end;
margin-bottom: 16px;
.title
{
flex-grow: 1;
flex-basis: 0;
font-size: 44px;
font-weight: 700;
color: $text-primary;
}
.time
{
font-size: 36px;
color: $text-secondary;
margin-left: 24px;
white-space: nowrap;
flex-shrink: 0;
// every digit the same width, so it doesn't jiggle as it counts
font-variant-numeric: tabular-nums;
}
}
.progress
{
height: 12px;
border-radius: 6px;
background-color: rgba( 255, 255, 255, 0.16 );
cursor: pointer;
.fill
{
height: 100%;
width: 0%;
border-radius: 6px;
background-color: $accent;
}
&:hover
{
height: 20px;
background-color: rgba( 255, 255, 255, 0.24 );
sound-in: ui.hover;
}
&:active
{
sound-in: ui.select;
}
}
.live
{
align-self: flex-start;
padding: 6px 18px;
border-radius: 10px;
background-color: $danger;
color: $text-primary;
font-size: 26px;
font-weight: 700;
align-items: center;
gap: 8px;
}
.controls
{
flex-direction: row;
align-items: center;
margin-top: 20px;
gap: 12px;
.btn
{
width: 88px;
height: 88px;
border-radius: 12px;
align-items: center;
justify-content: center;
background-color: $surface-btn;
border: 1px solid rgba( 255, 255, 255, 0.12 );
color: $text-primary;
cursor: pointer;
transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
i
{
font-size: 52px;
}
&:hover
{
background-color: $accent;
border-color: $accent-hover;
sound-in: ui.hover;
}
&:active
{
background-color: $accent-selected;
sound-in: ui.select;
}
&.toggle.active
{
background-color: $accent-selected;
border-color: $accent-hover;
color: #a1e2ff;
&:hover
{
background-color: $accent;
border-color: $accent-hover;
color: $text-primary;
}
}
}
.spacer
{
flex-grow: 1;
}
.queue-count, .by
{
font-size: 30px;
color: $text-muted;
align-items: center;
gap: 8px;
margin-left: 24px;
}
}
}
// Controls show when you start looking at the screen, and hide after MediaScreen.HideControlsAfter.
// Hidden controls don't take clicks - look away and back to bring them up.
.osd
{
pointer-events: none;
}
&.controls-visible .osd
{
opacity: 1;
pointer-events: all;
}
// AlwaysShowInfo: title + progress stay up, the buttons still hide
&.always-info .osd
{
opacity: 1;
.controls
{
opacity: 0;
transition: opacity 0.3s ease;
}
}
&.always-info.controls-visible .osd .controls
{
opacity: 1;
}
// The button under the crosshair - what USE will press
.btn.aimed, .osd .controls .btn.toggle.active.aimed
{
background-color: $accent;
border-color: $accent-hover;
color: $text-primary;
transform: scale( 1.08 );
}
.progress.aimed
{
height: 20px;
background-color: $accent-soft;
}
// "Press E" dot. A direct child of the root, moved onto the aimed control from code
// (MediaScreen.UpdatePressDot sets left/top/display); centered on that point by the negative margins.
// the USE button's glyph (a key cap, or the pad's button), centred on the aimed control's corner
.press-dot
{
position: absolute;
display: none;
left: 0;
top: 0;
margin-left: -28px;
margin-top: -28px;
font-size: 44px;
pointer-events: none;
z-index: 100;
}
.flash
{
position: absolute;
left: 50%;
top: 50%;
width: 220px;
height: 220px;
margin-left: -110px;
margin-top: -110px;
border-radius: 20px;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba( 25, 30, 32, 0.88 );
border: 1px solid $border;
color: $text-primary;
pointer-events: none;
i
{
font-size: 112px;
}
.flash-text
{
font-size: 30px;
font-weight: 700;
color: $text-secondary;
margin-top: -4px;
}
}
&.idle .osd
{
display: none;
}
}
.spectrumbars
{
flex-direction: row;
align-items: flex-end;
gap: 6px;
.bar
{
flex-grow: 1;
height: 3%;
border-radius: 4px 4px 0 0;
background: linear-gradient( to top, #2d5da1, #6891e0, #91b4ff );
}
}
""";
public const string MediaSpeaker = """
$accent: #4d90fc;
$accent-blue: #6891e0;
$accent-hover: #91b4ff;
$accent-selected: #2d5da1;
$surface-btn: rgba( 33, 39, 41, 0.85 );
$border: #384042;
$text-primary: #f1f5f2;
$text-secondary: #dbe1df;
$text-muted: #acb6b2;
$danger: #e05555;
.mediaspeaker
{
width: 100%;
height: 100%;
flex-direction: column;
padding: 24px 36px;
border-radius: 16px;
border: 2px solid $border;
background: linear-gradient( to bottom, #212729, #15191b );
font-family: "Inter";
color: $text-primary;
position: relative;
overflow: hidden;
pointer-events: all;
i
{
font-family: "Material Symbols Outlined";
font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24;
}
.header
{
flex-direction: row;
align-items: center;
gap: 16px;
i
{
font-size: 56px;
color: $accent-blue;
}
.title
{
flex-grow: 1;
flex-basis: 0;
font-size: 40px;
font-weight: 700;
color: $text-primary;
}
.hint
{
flex-direction: row;
align-items: center;
gap: 10px;
font-size: 28px;
font-weight: 600;
color: $text-secondary;
white-space: nowrap;
span
{
flex-shrink: 0;
}
}
}
.spectrumbars
{
flex-grow: 1;
min-height: 40px;
margin: 14px 0;
}
.controls
{
flex-direction: row;
align-items: center;
justify-content: center;
gap: 8px;
margin-bottom: 10px;
flex-shrink: 0;
.divider
{
width: 1px;
height: 28px;
margin: 0 4px;
background-color: $border;
}
.btn
{
width: 44px;
height: 44px;
border-radius: 8px;
align-items: center;
justify-content: center;
background-color: $surface-btn;
border: 1px solid rgba( 255, 255, 255, 0.12 );
color: $text-primary;
cursor: pointer;
transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
i
{
font-size: 26px;
}
&:hover
{
background-color: $accent;
border-color: $accent-hover;
sound-in: ui.hover;
}
&:active
{
background-color: $accent-selected;
sound-in: ui.select;
}
&.toggle.active
{
background-color: $accent-selected;
border-color: $accent-hover;
color: #a1e2ff;
&:hover
{
background-color: $accent;
border-color: $accent-hover;
color: $text-primary;
}
}
&.aimed, &.toggle.active.aimed
{
background-color: $accent;
border-color: $accent-hover;
color: $text-primary;
transform: scale( 1.08 );
}
}
}
.footer
{
flex-direction: row;
font-size: 28px;
color: $text-muted;
.time
{
flex-grow: 1;
// every digit the same width, so it doesn't jiggle as it counts
font-variant-numeric: tabular-nums;
}
.queue
{
align-items: center;
gap: 6px;
}
}
.notice
{
position: absolute;
left: 20px;
right: 20px;
bottom: 20px;
padding: 12px 20px;
border-radius: 10px;
background-color: $danger;
border: 1px solid rgba( 255, 255, 255, 0.16 );
color: $text-primary;
font-size: 26px;
font-weight: 600;
}
&.idle .spectrumbars
{
opacity: 0.3;
}
.press-dot
{
position: absolute;
display: none;
left: 0;
top: 0;
margin-left: -14px;
margin-top: -14px;
font-size: 22px;
pointer-events: none;
z-index: 100;
}
}
.spectrumbars
{
flex-direction: row;
align-items: flex-end;
gap: 6px;
.bar
{
flex-grow: 1;
height: 3%;
border-radius: 4px 4px 0 0;
background: linear-gradient( to top, #2d5da1, #6891e0, #91b4ff );
}
}
""";
public const string MediaRemote = """
// Self-contained Sandbox UI design system tokens & theme mixin (no facepunch.sandbox dependency).
$ui-menu-radius: 5px;
$ui-menu-blur: 6px;
// Dark palette (default, matches Sandbox Theme/Dark.scss)
$ui-blue: #6891e0;
$ui-hover-border: #91b4ff;
$ui-blue-soft: rgba( #91b4ff, 0.14 );
$ui-selected-bg: #2d5da1;
$ui-selected-text: #a1e2ff;
$ui-danger: #e05555;
$ui-danger-soft: rgba( #e05555, 0.18 );
$ui-status-text: #e8b85a;
$ui-menu-body: rgba( #191e20, 0.93 );
$ui-catalog-surface: rgba( #212729, 0.93 );
$ui-control-bg: #2a3032;
$ui-input-bg: #191e20;
$ui-control-border: #465053;
$ui-control-border-hover: #667275;
$ui-separator: #384042;
$ui-row-alt: rgba( 255, 255, 255, 0.025 );
$ui-text-strong: #f1f5f2;
$ui-text: #dbe1df;
$ui-text-label: #c2cac7;
$ui-text-muted: #acb6b2;
$ui-text-placeholder: #8c9897;
$ui-slider-track: #738084;
$ui-scroll-track: #191e20;
$ui-scroll-thumb: #909b9e;
$ui-window-shadow: 0 8px 24px rgba( 0, 0, 0, 0.35 );
$ui-backdrop: rgba( 0, 0, 0, 0.35 );
@mixin remote-theme
{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: $ui-backdrop;
pointer-events: all;
font-family: "Inter";
color: $ui-text;
i
{
font-family: "Material Symbols Outlined";
font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24;
}
.window
{
width: 760px;
max-height: 90%;
flex-direction: column;
border-radius: 8px;
background-color: $ui-menu-body;
backdrop-filter: blur( $ui-menu-blur );
border: 1px solid $ui-separator;
box-shadow: $ui-window-shadow;
overflow: hidden;
}
.header
{
flex-direction: row;
align-items: center;
gap: 10px;
padding: 12px 18px;
flex-shrink: 0;
background-color: $ui-catalog-surface;
border-bottom: 1px solid $ui-separator;
border-radius: 8px 8px 0 0;
> i
{
font-size: 22px;
color: $ui-blue;
}
.title
{
flex-grow: 1;
font-size: 16px;
font-weight: 700;
color: $ui-text-strong;
}
.close
{
width: 32px;
height: 32px;
border-radius: $ui-menu-radius;
border: 1px solid transparent;
justify-content: center;
align-items: center;
color: $ui-text-label;
cursor: pointer;
i
{
font-size: 20px;
}
&:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
border-color: $ui-blue;
sound-in: ui.select;
}
}
}
.body
{
flex-direction: column;
padding: 16px 20px;
gap: 14px;
min-height: 0;
flex-shrink: 1;
overflow: hidden;
}
.now
{
flex-direction: column;
gap: 4px;
flex-shrink: 0;
.label
{
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.6px;
color: $ui-text-muted;
}
.track
{
font-size: 18px;
font-weight: 700;
color: $ui-text-strong;
&.dim
{
font-weight: 500;
color: $ui-text-muted;
}
}
.sub
{
flex-direction: row;
font-size: 13px;
font-weight: 500;
color: $ui-text-label;
gap: 16px;
.time
{
margin-left: auto;
font-variant-numeric: tabular-nums;
color: $ui-text-muted;
}
}
.status
{
margin-top: 4px;
font-size: 13px;
font-weight: 500;
color: $ui-status-text;
}
.notice
{
margin-top: 4px;
padding: 7px 10px;
border-radius: $ui-menu-radius;
font-size: 13px;
font-weight: 500;
background-color: $ui-danger-soft;
border: 1px solid $ui-danger;
color: $ui-text-strong;
}
}
SliderControl, .slidercontrol
{
> .inner > .track
{
height: 4px;
background-color: $ui-slider-track;
border-radius: 2px;
> .track-active
{
background-color: $ui-blue;
border-radius: 2px;
}
> .thumb
{
width: 15px;
height: 15px;
background-color: $ui-blue;
border: 2px solid white;
box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.25 );
}
}
&:hover > .inner > .track > .thumb
{
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.35 ), 0 0 0 3px $ui-blue-soft;
}
&:active > .inner > .track > .thumb
{
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.35 ), 0 0 0 4px $ui-blue-soft;
}
}
.seek
{
flex-shrink: 0;
&.disabled
{
pointer-events: none;
opacity: 0.45;
}
SliderControl, .slidercontrol
{
width: 100%;
}
}
.transport
{
flex-direction: row;
justify-content: center;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.btn
{
width: 42px;
height: 42px;
border-radius: $ui-menu-radius;
justify-content: center;
align-items: center;
background-color: $ui-control-bg;
border: 1px solid $ui-control-border;
color: $ui-text;
cursor: pointer;
i
{
font-size: 24px;
}
&:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
border-color: $ui-blue;
sound-in: ui.select;
}
&.big
{
width: 56px;
height: 42px;
background-color: $ui-blue;
border-color: $ui-blue;
color: white;
i
{
font-size: 28px;
}
&:hover
{
background-color: $ui-blue;
border-color: $ui-hover-border;
filter: brightness( 1.08 );
color: white;
}
}
&.small
{
width: 32px;
height: 32px;
i
{
font-size: 18px;
}
}
&.toggle.active
{
background-color: $ui-selected-bg;
border-color: $ui-blue;
color: $ui-selected-text;
&:hover
{
background-color: $ui-selected-bg;
border-color: $ui-hover-border;
color: $ui-selected-text;
filter: brightness( 1.08 );
}
}
}
.entry
{
flex-direction: row;
align-items: center;
gap: 8px;
flex-shrink: 0;
TextEntry, .textentry
{
flex-grow: 1;
height: 36px;
padding: 0 10px;
border-radius: $ui-menu-radius;
font-family: "Inter";
font-size: 14px;
font-weight: 500;
background-color: $ui-input-bg;
border: 1px solid $ui-control-border;
color: $ui-text;
align-items: center;
.placeholder
{
opacity: 1;
color: $ui-text-placeholder;
}
.content-label
{
color: $ui-text;
}
&:hover
{
border-color: $ui-control-border-hover;
}
&:focus
{
border-color: $ui-blue;
}
}
.action
{
height: 36px;
padding: 0 12px;
border-radius: $ui-menu-radius;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
background-color: $ui-control-bg;
border: 1px solid $ui-control-border;
color: $ui-text;
i
{
font-size: 18px;
}
&:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
border-color: $ui-blue;
sound-in: ui.select;
}
&.primary
{
background-color: $ui-blue;
border-color: $ui-blue;
color: white;
&:hover
{
background-color: $ui-blue;
border-color: $ui-hover-border;
filter: brightness( 1.08 );
color: white;
}
}
}
}
.stream-options
{
flex-direction: row;
flex-wrap: wrap; // quality + dub + captions + the view toggle are wider than the window
align-items: center;
gap: 10px;
flex-shrink: 0;
.option
{
flex-direction: row;
align-items: center;
gap: 6px;
> i
{
font-size: 18px;
color: $ui-text-muted;
}
}
// Video / Audio: two segments, the active one filled
.view-toggle
{
flex-direction: row;
gap: 4px;
&.disabled
{
pointer-events: none;
opacity: 0.45;
}
.seg
{
flex-direction: row;
align-items: center;
gap: 6px;
height: 32px;
padding: 0 10px;
border-radius: $ui-menu-radius;
font-size: 13px;
font-weight: 600;
background-color: $ui-control-bg;
border: 1px solid $ui-control-border;
color: $ui-text-label;
cursor: pointer;
i
{
font-size: 17px;
}
&:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
border-color: $ui-blue;
sound-in: ui.select;
}
&.active
{
background-color: $ui-selected-bg;
border-color: $ui-selected-bg;
color: $ui-selected-text;
&:hover
{
border-color: $ui-hover-border;
}
}
}
}
.dropdown
{
min-width: 150px;
height: 32px;
padding: 0 10px;
border-radius: $ui-menu-radius;
font-family: "Inter";
font-size: 13px;
font-weight: 500;
align-items: center;
background-color: $ui-control-bg;
border: 1px solid $ui-control-border;
color: $ui-text;
cursor: pointer;
&:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
border-color: $ui-blue;
sound-in: ui.select;
}
}
.audio-track
{
min-width: 210px;
}
.playing-as
{
margin-left: auto;
font-size: 12px;
font-weight: 500;
color: $ui-text-muted;
}
}
.locked
{
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 500;
color: $ui-text-muted;
flex-shrink: 0;
i
{
font-size: 18px;
}
}
.queue
{
flex-direction: column;
gap: 8px;
min-height: 0;
flex-shrink: 1;
overflow: hidden;
.queue-header
{
flex-direction: row;
align-items: center;
gap: 6px;
padding-bottom: 6px;
border-bottom: 1px solid $ui-separator;
font-size: 13px;
font-weight: 600;
flex-shrink: 0;
.tab
{
flex-direction: row;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 10px;
border-radius: $ui-menu-radius;
border: 1px solid transparent;
color: $ui-text-label;
cursor: pointer;
&:hover
{
background-color: $ui-blue-soft;
color: $ui-text-strong;
sound-in: ui.hover;
}
&:active
{
sound-in: ui.select;
}
&.active
{
background-color: $ui-selected-bg;
color: $ui-selected-text;
.count
{
color: $ui-selected-text;
opacity: 0.8;
}
}
}
.count
{
color: $ui-text-muted;
font-weight: 500;
}
.spacer
{
flex-grow: 1;
}
}
.queue-list
{
flex-direction: column;
flex-shrink: 1;
min-height: 0;
max-height: 240px;
overflow-y: scroll;
gap: 4px;
scrollbar-width: 10px;
scrollbar-color: $ui-scroll-thumb $ui-scroll-track;
> scrollbar
{
border-radius: 0;
> .thumb
{
border-radius: 0 !important;
&:hover
{
filter: brightness( 1.25 );
}
}
}
}
.empty
{
font-size: 13px;
font-weight: 500;
color: $ui-text-muted;
padding: 8px 2px;
}
.queue-item
{
flex-direction: row;
align-items: center;
gap: 10px;
padding: 7px 10px;
border-radius: $ui-menu-radius;
background-color: $ui-row-alt;
border: 1px solid $ui-separator;
flex-shrink: 0;
.num
{
width: 22px;
font-size: 13px;
font-weight: 600;
color: $ui-text-muted;
}
.info
{
flex-grow: 1;
flex-direction: column;
overflow: hidden;
.name
{
font-size: 14px;
font-weight: 500;
color: $ui-text-strong;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.by
{
font-size: 12px;
color: $ui-text-muted;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.dur
{
font-size: 12px;
font-weight: 500;
font-variant-numeric: tabular-nums;
color: $ui-text-muted;
}
}
}
.small-btn
{
height: 28px;
padding: 0 8px;
border-radius: $ui-menu-radius;
font-size: 12px;
font-weight: 600;
cursor: pointer;
align-items: center;
justify-content: center;
background-color: $ui-control-bg;
border: 1px solid $ui-control-border;
color: $ui-text-label;
i
{
font-size: 16px;
}
&:hover
{
background-color: $ui-danger;
border-color: $ui-danger;
color: white;
sound-in: ui.hover;
}
&:active
{
sound-in: ui.select;
}
// play / queue again, not remove
&.go:hover
{
background-color: $ui-blue-soft;
border-color: $ui-control-border-hover;
color: $ui-text-strong;
}
}
// controller: the highlighted control (see PadNavigation) - crisp ring via shadow so nothing shifts size
.pad-focus
{
box-shadow: 0 0 0 2px $ui-blue;
background-color: $ui-blue-soft;
}
.dropdown.pad-focus, .seek.pad-focus, .volume.pad-focus, .tab.pad-focus, .small-btn.pad-focus, .seg.pad-focus, .btn.pad-focus, .close.pad-focus
{
border-radius: $ui-menu-radius;
}
// the play button is already filled with the accent
.btn.big.pad-focus
{
background-color: $ui-blue;
}
.btn.toggle.active.pad-focus
{
background-color: $ui-selected-bg;
}
.pad-note
{
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 500;
color: $ui-text-muted;
flex-shrink: 0;
i
{
font-size: 18px;
}
}
.footer
{
flex-direction: row;
align-items: center;
gap: 10px;
padding: 10px 18px;
flex-shrink: 0;
background-color: $ui-catalog-surface;
border-top: 1px solid $ui-separator;
border-radius: 0 0 8px 8px;
.btn.small
{
flex-shrink: 0;
}
.volume
{
width: 176px;
flex-shrink: 0;
}
.volume-pct
{
min-width: 36px;
text-align: right;
font-size: 12px;
font-weight: 600;
color: $ui-text-muted;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
white-space: nowrap;
}
// 3D / 2D audio toggle: an icon and a label, so it reads as a mode rather than a mystery button
.btn.small.audio-mode
{
width: auto;
min-width: 56px;
padding: 0 10px;
gap: 5px;
flex-shrink: 0;
white-space: nowrap;
flex-direction: row;
border-radius: $ui-menu-radius;
font-size: 12px;
font-weight: 600;
&.flat
{
background-color: $ui-selected-bg;
border-color: $ui-selected-bg;
color: $ui-selected-text;
&:hover
{
border-color: $ui-hover-border;
}
}
}
.hint
{
margin-left: auto;
flex-direction: row;
align-items: center;
gap: 5px;
font-size: 12px;
font-weight: 500;
color: $ui-text-muted;
white-space: nowrap;
flex-shrink: 1;
overflow: hidden;
.inputglyph
{
height: 2em;
}
}
}
}
.mediaremote
{
@include remote-theme;
}
// Light palette (matches Sandbox Theme/Light.scss)
$ui-blue: #3e83eb;
$ui-hover-border: rgba( #3e83eb, 0.68 );
$ui-blue-soft: rgba( #3e83eb, 0.14 );
$ui-selected-bg: #2967ba;
$ui-selected-text: white;
$ui-danger: #d04040;
$ui-danger-soft: rgba( #d04040, 0.14 );
$ui-status-text: #a86b00;
$ui-menu-body: rgba( 222, 229, 235, 0.94 );
$ui-catalog-surface: rgba( 246, 248, 250, 0.94 );
$ui-control-bg: #f3f3f3;
$ui-input-bg: rgba( 255, 255, 255, 0.96 );
$ui-control-border: #989898;
$ui-control-border-hover: #6f6f6f;
$ui-separator: rgba( 0, 0, 0, 0.12 );
$ui-row-alt: rgba( 0, 0, 0, 0.05 );
$ui-text-strong: #444444;
$ui-text: #555555;
$ui-text-label: #666666;
$ui-text-muted: #777777;
$ui-text-placeholder: #a8a8a8;
$ui-slider-track: rgba( #8a8a8a, 0.5 );
$ui-scroll-track: #d0d0d0;
$ui-scroll-thumb: #9b9b9b;
$ui-window-shadow: 0 8px 24px rgba( 0, 0, 0, 0.18 );
$ui-backdrop: rgba( 0, 0, 0, 0.2 );
.mediaremote.bimp-light
{
@include remote-theme;
}
""";
}