File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
hub/src/main/kotlin/uk/co/sentinelweb/cuer/hub
shared/src/commonMain/kotlin/uk/co/sentinelweb/cuer/app/ui/player Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -101,15 +101,17 @@ fun Home(coordinator: HomeUiCoordinator) {
101
101
.background(Color .White )
102
102
// .padding(bottom=if (state.value.showPlayer) 100.dp else 0.dp)
103
103
) {
104
+ Box (modifier = Modifier .weight(1f ).fillMaxHeight()) {
105
+ when (state.value.route) {
106
+ Settings -> PreferencesUi (coordinator.preferencesUiCoordinator)
107
+ is Folders -> coordinator.filesUiCoordinator.FileBrowserDesktopUi ()
108
+ ThemeTest -> SharedThemeView .View ()
109
+ LocalConfig -> LocalComposables .LocalDesktopUi (coordinator.localCoordinator)
110
+ }
111
+ }
104
112
if (state.value.showPlayer) {
105
113
coordinator.playerUiCoordinator?.PlayerDesktopUi ()
106
114
}
107
- when (state.value.route) {
108
- Settings -> PreferencesUi (coordinator.preferencesUiCoordinator)
109
- is Folders -> coordinator.filesUiCoordinator.FileBrowserDesktopUi ()
110
- ThemeTest -> SharedThemeView .View ()
111
- LocalConfig -> LocalComposables .LocalDesktopUi (coordinator.localCoordinator)
112
- }
113
115
}
114
116
}
115
117
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class ComposePopup : JFrame() {
14
14
defaultCloseOperation = HIDE_ON_CLOSE
15
15
isAlwaysOnTop = true
16
16
setUndecorated(true )
17
- size = Dimension (400 , 68 )
17
+ size = Dimension (580 , 100 )
18
18
layout = BorderLayout ()
19
19
20
20
// Create Compose Panel
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package uk.co.sentinelweb.cuer.hub.util.system_tray
3
3
import androidx.compose.foundation.layout.Box
4
4
import androidx.compose.foundation.layout.Row
5
5
import androidx.compose.foundation.layout.padding
6
- import androidx.compose.material.Button
7
- import androidx.compose.material .Text
6
+ import androidx.compose.material3.MaterialTheme
7
+ import androidx.compose.material3 .Text
8
8
import androidx.compose.runtime.Composable
9
9
import androidx.compose.runtime.collectAsState
10
10
import androidx.compose.ui.Modifier
@@ -26,7 +26,7 @@ object SystemTrayPopup: KoinComponent {
26
26
Box (modifier = Modifier .padding(8 .dp, bottom= 16 .dp)) {
27
27
homeUiCoordinator.playerUiCoordinator
28
28
?.PlayerDesktopUi ()
29
- ? : Text (" Not playing ..." )
29
+ ? : Text (" Not playing ..." , color = MaterialTheme .colorScheme.onSurface )
30
30
}
31
31
}
32
32
}
Original file line number Diff line number Diff line change @@ -96,8 +96,9 @@ object PlayerComposeables : KoinComponent {
96
96
} else if (model.playState == BUFFERING ) {
97
97
CircularProgressIndicator (
98
98
color = contentColor,
99
+ strokeWidth = 2 .dp,
99
100
modifier = Modifier .size(buttonSize)
100
- .padding(buttonPadding )
101
+ .padding(12 .dp )
101
102
)
102
103
} else if (model.playState == PAUSED ) {
103
104
IconButton (onClick = {
You can’t perform that action at this time.
0 commit comments