Skip to content

Commit

Permalink
Component uses actual colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pspritechologist committed Oct 30, 2023
1 parent 29fa453 commit 791e9f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Content.Client/SimpleStation14/Jukebox/Ui/JukeboxWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public JukeboxWindow(JukeboxComponent jukeboxComp, ISawmill log)
SkipButton.TexturePath = jukeboxComp.UiButtonSkip;

// Sets up the custom colours of the ui.
BG_1.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorBG) };
Panel_1.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorPanel) };
Panel_2.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorPanel) };
Panel_3.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorPanel) };
// Accent_1.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.JukeboxUiColorAccent) };
// Accent_2.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.JukeboxUiColorAccent) };
Accent_3.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorAccent) };
Accent_4.PanelOverride = new StyleBoxFlat { BackgroundColor = Color.FromHex(jukeboxComp.UiColorAccent) };
BG_1.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorBG };
Panel_1.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorPanel };
Panel_2.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorPanel };
Panel_3.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorPanel };
// Accent_1.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.JukeboxUiColorAccent };
// Accent_2.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.JukeboxUiColorAccent };
Accent_3.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorAccent };
Accent_4.PanelOverride = new StyleBoxFlat { BackgroundColor = jukeboxComp.UiColorAccent };

// Sets up all the fonts.
SongName.FontOverride = _resourceCache.GetFont("/Fonts/NotoSans/NotoSans-Regular.ttf", 18);
Expand Down
6 changes: 3 additions & 3 deletions Content.Shared/SimpleStation14/Jukebox/JukeboxComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ public sealed partial class JukeboxComponent : Component
/// Should be based on the sprite.
/// </summary>
[DataField("uiColorBG")]
public string UiColorBG { get; } = "#602C00";
public Color UiColorBG { get; } = Color.FromHex("#602C00");

/// <inheritdoc cref="UiColorBG"/>
[DataField("uiColorPanel")]
public string UiColorPanel { get; } = "#480F0F";
public Color UiColorPanel { get; } = Color.FromHex("#480F0F");

/// <inheritdoc cref="UiColorBG"/>
[DataField("uiColorAccent")]
public string UiColorAccent { get; } = "#20181B";
public Color UiColorAccent { get; } = Color.FromHex("#20181B");

[DataField("uiButtonPlay")]
public string UiButtonPlay { get; } = "/Textures/SimpleStation14/Interface/MediaControls/play.png";
Expand Down

0 comments on commit 791e9f0

Please sign in to comment.