1919use OCP \IURLGenerator ;
2020use OCP \IUserSession ;
2121
22- class DefaultTheme implements ITheme {
22+ class DefaultTheme implements ITheme
23+ {
2324 use CommonThemeTrait;
2425
2526 public string $ defaultPrimaryColor ;
@@ -40,35 +41,43 @@ public function __construct(
4041 $ this ->primaryColor = $ this ->themingDefaults ->getColorPrimary ();
4142 }
4243
43- public function getId (): string {
44+ public function getId (): string
45+ {
4446 return 'default ' ;
4547 }
4648
47- public function getType (): int {
49+ public function getType (): int
50+ {
4851 return ITheme::TYPE_THEME ;
4952 }
5053
51- public function getTitle (): string {
54+ public function getTitle (): string
55+ {
5256 return $ this ->l ->t ('System default theme ' );
5357 }
5458
55- public function getEnableLabel (): string {
59+ public function getEnableLabel (): string
60+ {
5661 return $ this ->l ->t ('Enable the system default ' );
5762 }
5863
59- public function getDescription (): string {
64+ public function getDescription (): string
65+ {
6066 return $ this ->l ->t ('Using the default system appearance. ' );
6167 }
6268
63- public function getMediaQuery (): string {
69+ public function getMediaQuery (): string
70+ {
6471 return '' ;
6572 }
6673
67- public function getMeta (): array {
74+ public function getMeta (): array
75+ {
6876 return [];
6977 }
7078
71- public function getCSSVariables (): array {
79+ public function getCSSVariables (): array
80+ {
7281 $ colorMainText = '#222222 ' ;
7382 // Color that still provides enough contrast for text, so we need a ratio of 4.5:1 on main background AND hover
7483 $ colorTextMaxcontrast = '#6b6b6b ' ; // 4.5 : 1 for hover background and background dark
@@ -106,7 +115,7 @@ public function getCSSVariables(): array {
106115 'theming ' ,
107116 'force_enable_blur_filter ' ,
108117 );
109- $ workingBlur = match ($ forceEnableBlur ) {
118+ $ workingBlur = match ($ forceEnableBlur ) {
110119 'yes ' => true ,
111120 'no ' => false ,
112121 default => !$ isChromium
@@ -185,8 +194,8 @@ public function getCSSVariables(): array {
185194 // Assistant colors (marking AI generated content)
186195 '--color-background-assistant ' => '#F6F5FF ' , // Background for AI generated content
187196 '--color-border-assistant ' => 'linear-gradient(125deg, #7398FE 50%, #6104A4 125%) ' , // Border for AI generated content
188- '--color-element-assistant ' => 'linear-gradient(238deg , #A569D3 12%, #00679E 39%, #422083 86%) ' , // Background of primary buttons to interact with the Assistant (e.g. generate content)
189- '--color-element-assistant-icon ' => 'linear-gradient(285deg, #9669D3 15%, #00679E 40%, #492083 80% ) ' , // The color used for the Assistant icon
197+ '--color-element-assistant ' => 'linear-gradient(214deg , #A569D3 12%, #00679E 39%, #422083 86%) ' , // Background of primary buttons to interact with the Assistant (e.g. generate content)
198+ '--color-element-assistant-icon ' => 'var(--color-element-assistant ) ' , // The color used for the Assistant icon
190199
191200 '--font-face ' => "system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' " ,
192201 '--default-font-size ' => '15px ' ,
@@ -257,7 +266,8 @@ public function getCSSVariables(): array {
257266 return $ variables ;
258267 }
259268
260- public function getCustomCss (): string {
269+ public function getCustomCss (): string
270+ {
261271 return '' ;
262272 }
263273}
0 commit comments