From 6db94b27461ec5f7b60f01065a0bb6bded26981d Mon Sep 17 00:00:00 2001 From: Babaev <129369024+babaevlsdd@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:56:12 +0600 Subject: [PATCH 1/5] =?UTF-8?q?=D0=B0=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/Stylesheets/StyleNano.cs | 15 ++++- Content.Client/_Sunrise/Roadmap/Roadmap.xaml | 20 +++--- .../_Sunrise/Roadmap/RoadmapItem.xaml | 63 +++++++++++++++---- .../_Sunrise/Roadmap/RoadmapItem.xaml.cs | 12 ++-- .../Roadmap/RoadmapVersionHeader.xaml | 9 ++- .../_Sunrise/Roadmap/RoadmapWindow.xaml | 25 ++++++-- 6 files changed, 110 insertions(+), 34 deletions(-) diff --git a/Content.Client/Stylesheets/StyleNano.cs b/Content.Client/Stylesheets/StyleNano.cs index d8042897036..3ddfd10fae0 100644 --- a/Content.Client/Stylesheets/StyleNano.cs +++ b/Content.Client/Stylesheets/StyleNano.cs @@ -163,6 +163,7 @@ public sealed class StyleNano : StyleBase public const string StyleClassCrossButtonRed = "CrossButtonRed"; public const string StyleClassButtonColorRed = "ButtonColorRed"; public const string StyleClassButtonColorGreen = "ButtonColorGreen"; + public const string StyleClassNoStyle = "NoStyle"; // Sunrise-Edit public static readonly Color ChatBackgroundColor = Color.FromHex("#25252ADD"); @@ -1722,7 +1723,19 @@ public StyleNano(IResourceCache resCache) : base(resCache) new[] { new StyleProperty(TextureButton.StylePropertyTexture, resCache.GetTexture("/Textures/Interface/Bwoink/un_pinned.png")) - }) + }), + // Sunrise-Edit + + Element + + + + + + + + + + - - - - - - + diff --git a/Content.Client/_Sunrise/Roadmap/RoadmapItem.xaml.cs b/Content.Client/_Sunrise/Roadmap/RoadmapItem.xaml.cs index 444185eb3cc..772cd335178 100644 --- a/Content.Client/_Sunrise/Roadmap/RoadmapItem.xaml.cs +++ b/Content.Client/_Sunrise/Roadmap/RoadmapItem.xaml.cs @@ -21,10 +21,10 @@ public RoadmapItemState ItemState var panel = (StyleBoxFlat) StateColor.PanelOverride!; panel.BackgroundColor = _itemState switch { - RoadmapItemState.Planned => Color.Red, - RoadmapItemState.InProgress => Color.FromHex("#20C9FF"), - RoadmapItemState.Partial => Color.Yellow, - RoadmapItemState.Complete => Color.Green, + RoadmapItemState.Planned => Color.FromHex("#e74c3c"), + RoadmapItemState.InProgress => Color.FromHex("#3498db"), + RoadmapItemState.Partial => Color.FromHex("#f1c40f"), + RoadmapItemState.Complete => Color.FromHex("#2ecc71"), _ => Color.Transparent }; @@ -42,8 +42,8 @@ public RoadmapItemState ItemState public string? HeaderText { - get => HeaderButton.Text; - set => HeaderButton.Text = value; + get => HeaderLabel.Text; + set => HeaderLabel.Text = value; } public string? Text diff --git a/Content.Client/_Sunrise/Roadmap/RoadmapVersionHeader.xaml b/Content.Client/_Sunrise/Roadmap/RoadmapVersionHeader.xaml index 4d72887eddc..2f46d2e6d88 100644 --- a/Content.Client/_Sunrise/Roadmap/RoadmapVersionHeader.xaml +++ b/Content.Client/_Sunrise/Roadmap/RoadmapVersionHeader.xaml @@ -4,7 +4,10 @@ xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls" Orientation="Horizontal" Margin="0 0 0 15"> - -