33namespace Apollo . Components . Theme
44{
55 /// <summary>
6- /// Copied from Siren
6+ /// Siren M3 theme - modern Material 3 inspired design
77 /// </summary>
88 public class SirenTheme : EditorThemeDefinition
99 {
1010 public override string Name => "Siren" ;
1111
12- public override bool HideAppIcon => false ;
12+ public override bool HideAppIcon => true ;
1313
1414 public override string AppIconClass => "siren-app-icon" ;
15-
16- public override string AppBarStyle => ( AppState ? . IsDarkMode ?? true ) ?
17- "box-shadow:1px 1px 4px 0px var(--mud-palette-primary); background:linear-gradient(90deg, var(--mud-palette-appbar-background) 30%, rgba(0,0,0,0.25) 100% );" :
18- "box-shadow:1px 1px 8px 1px var(--mud-palette-primary); background:linear-gradient(90deg , var(--mud-palette-primary) 20 %, var(--mud-palette-tertiary) 70%, rgba(255,255,255,0.25) 100% );" ;
19-
15+
16+ public override string AppBarStyle => ( AppState ? . IsDarkMode ?? true ) ?
17+ "background: linear-gradient(190deg, var(--mud-palette-primary) 70%, var(--mud-palette-primary-lighten) );" :
18+ "background: linear-gradient(190deg , var(--mud-palette-primary) 70 %, var(--mud-palette-primary-lighten) );" ;
19+
2020 public SirenTheme ( )
2121 {
2222 BaseTheme = new ( ) {
2323 PaletteLight = new PaletteLight ( )
2424 {
25- Primary = SirenColors . Primary ,
26- Secondary = SirenColors . Darken ,
27- Tertiary = SirenColors . Tertiary ,
28- HoverOpacity = 0.5 ,
29- Background = SirenColors . Light ,
30- AppbarBackground = "#8fd8ff" ,
31- Black = SirenColors . Black ,
25+ Primary = "#0085CC" ,
26+ PrimaryLighten = "#1AB0FF" ,
27+ Secondary = "#598BA6" ,
28+ Tertiary = "#5A22C3" ,
3229 Surface = "#FFFFFF" ,
33- ActionDefault = SirenColors . Primary ,
34- ActionDisabled = SirenColors . ActionDisabled ,
35- TableHover = SirenColors . Tertiary ,
36- Dark = "#016a94" ,
37- Divider = SirenColors . Primary ,
38- GrayDarker = "#666666"
30+ Background = "#FAFAFA" ,
31+ AppbarBackground = "#005380" ,
32+ Dark = "#E9EBED" ,
33+ Divider = "#0096E6" ,
34+ GrayDarker = "#666666" ,
35+ Success = "#4CAF50" ,
36+ Warning = "#FF9800" ,
37+ Error = "#F44336" ,
38+ Info = "#2196F3"
3939 } ,
4040 PaletteDark = new PaletteDark ( )
4141 {
42- Primary = SirenColors . Primary ,
43- Secondary = SirenColors . Light ,
44- Tertiary = SirenColors . Primary ,
45- HoverOpacity = 0.5 ,
46- TableHover = SirenColors . Dark . AppBarBackground ,
47- AppbarBackground = SirenColors . Dark . AppBarBackground ,
48- Background = SirenColors . Black ,
49- Black = SirenColors . Black ,
50- Surface = SirenColors . Black ,
51- ActionDefault = SirenColors . Primary ,
52- Dark = SirenColors . Darken ,
53- Divider = SirenColors . Primary ,
54- GrayDarker = "#222" ,
42+ Primary = "#00324D" ,
43+ PrimaryLighten = "#006499" ,
44+ Secondary = "#1AB0FF" ,
45+ Tertiary = "#4D14B8" ,
46+ Surface = "#0B0D0E" ,
47+ Background = "#121516" ,
48+ AppbarBackground = "#050505ff" ,
49+ Dark = "#273035" ,
50+ Divider = "#00A7FF" ,
51+ GrayDarker = "#1C2022" ,
52+ Success = "#66BB6A" ,
53+ Warning = "#FFA726" ,
54+ Error = "#EF5350" ,
55+ Info = "#42A5F5"
5556 } ,
5657 Typography = new Typography ( )
5758 {
5859 Default = new DefaultTypography ( )
5960 {
6061 FontFamily = new [ ] { "Tahoma" , "Geneva" , "Verdana" , } ,
6162 TextTransform = "none" ,
62- FontSize = "0.75 " ,
63+ FontSize = "2 " ,
6364 } ,
6465
6566 Button = new ButtonTypography ( )
@@ -71,58 +72,16 @@ public SirenTheme()
7172 } ,
7273 LayoutProperties = new LayoutProperties ( )
7374 {
74- DefaultBorderRadius = "0.5em " ,
75- AppbarHeight = "3rem " ,
75+ DefaultBorderRadius = "1.25em " ,
76+ AppbarHeight = "2rem " ,
7677 DrawerWidthLeft = "3.25em" ,
7778 } ,
78-
79+
7980 } ;
8081 }
8182 public static class Instance
8283 {
8384 public static SirenTheme Theme { get ; set ; } = new ( ) ;
8485 }
8586 }
86-
87- internal static class SirenColors
88- {
89- public static class Dark
90- {
91- //public static string Primary => "03045e";
92- public static string Primary => "00001A" ;
93-
94- public static string Secondary => "640ADB" ;
95-
96- public static string Tertiary => "002538" ;
97-
98- public static string AppBarBackground => "00162E" ;
99-
100- //public static string AppBarBackground => "001520";
101-
102- }
103-
104- public static string Primary => "0077B6" ;
105-
106- public static string Secondary => "170035" ;
107-
108- public static string Tertiary => "AED2E5" ;
109-
110- public static string Light => "caf0f8" ;
111-
112- public static string Darken => "003449" ;
113-
114- public static string Black => "000000" ;
115-
116- public static string Action => "" ;
117-
118- public static string ActionDisabled => "AED2E5" ;
119-
120- public static string Hash ( string s )
121- {
122- return $ "#{ s } ";
123- }
124- }
125-
126-
12787}
128-
0 commit comments