Skip to content

Commit 4cd7123

Browse files
committed
Add more styling options
1 parent 02b4a5b commit 4cd7123

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

backend/src/main/kotlin/hu/bme/sch/cmsch/component/app/StylingComponent.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class StylingComponent(
2424
minRole,
2525

2626
lightGroup,
27+
lightFooterTransparent,
28+
lightNavbarTransparent,
2729
lightBackgroundColor,
2830
lightContainerColor,
2931
lightTextColor,
@@ -36,6 +38,8 @@ class StylingComponent(
3638
darkModeEnabled,
3739
deviceTheme,
3840
forceDarkMode,
41+
darkFooterTransparent,
42+
darkNavbarTransparent,
3943
darkBackgroundColor,
4044
darkContainerColor,
4145
darkTextColor,
@@ -68,6 +72,16 @@ class StylingComponent(
6872
description = "Az oldal világos stílusának színei, háttérképek"
6973
)
7074

75+
val lightFooterTransparent = SettingProxy(componentSettingService, component,
76+
"lightFooterTransparent", "false", type = SettingType.BOOLEAN,
77+
fieldName = "Footer áttetsző", description = "Ha be van kapcsolva, a navbar áttetsző"
78+
)
79+
80+
val lightNavbarTransparent = SettingProxy(componentSettingService, component,
81+
"lightNavbarTransparent", "false", type = SettingType.BOOLEAN,
82+
fieldName = "Navbar áttetsző", description = "Ha be van kapcsolva, a navbar áttetsző"
83+
)
84+
7185
val lightBackgroundColor = SettingProxy(componentSettingService, component,
7286
"lightBackgroundColor", "#FFFFFF", type = SettingType.COLOR,
7387
fieldName = "Háttérszín", description = "Az oldal hátterének a színe, ha nincs kép megadva, akkor ez látszik"
@@ -127,6 +141,16 @@ class StylingComponent(
127141
fieldName = "Csak a sötét téma érhető el", description = "Ha be van kapcsolva, akkor csak a sötét téma használható"
128142
)
129143

144+
val darkFooterTransparent = SettingProxy(componentSettingService, component,
145+
"darkFooterTransparent", "false", type = SettingType.BOOLEAN,
146+
fieldName = "Footer áttetsző", description = "Ha be van kapcsolva, a navbar áttetsző"
147+
)
148+
149+
val darkNavbarTransparent = SettingProxy(componentSettingService, component,
150+
"darkNavbarTransparent", "false", type = SettingType.BOOLEAN,
151+
fieldName = "Navbar áttetsző", description = "Ha be van kapcsolva, a navbar áttetsző"
152+
)
153+
130154
val darkBackgroundColor = SettingProxy(componentSettingService, component,
131155
"darkBackgroundColor", "#FFFFFF", type = SettingType.COLOR,
132156
fieldName = "Háttérszín", description = "Az oldal hátterének a színe, ha nincs kép megadva, akkor ez látszik"

0 commit comments

Comments
 (0)