File tree 6 files changed +49
-0
lines changed
kotlin/com/kgurgul/cpuinfo/features/settings/licenses
6 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 181
181
<string name =" sensors_magnetic_field" >Magnetické pole</string >
182
182
<string name =" sensors_attitude" >Orientace</string >
183
183
184
+ <!-- Licenses -->
185
+ <string name =" licenses" >Licence</string >
186
+ <string name =" licenses_module_name" >Název modulu:</string >
187
+ <string name =" licenses_module_version" >Verze modulu:</string >
188
+ <string name =" licenses_module_license" >Licence:</string >
189
+
184
190
</resources >
185
191
Original file line number Diff line number Diff line change 181
181
<string name =" sensors_magnetic_field" >Magnetfeld</string >
182
182
<string name =" sensors_attitude" >Ausrichtung</string >
183
183
184
+ <!-- Licenses -->
185
+ <string name =" licenses" >Lizenzen</string >
186
+ <string name =" licenses_module_name" >Modulname:</string >
187
+ <string name =" licenses_module_version" >Modulversion:</string >
188
+ <string name =" licenses_module_license" >Lizenz:</string >
189
+
184
190
</resources >
Original file line number Diff line number Diff line change 191
191
<string name =" sensors_magnetic_field" >Pole magnetyczne</string >
192
192
<string name =" sensors_attitude" >Postawa</string >
193
193
194
+ <!-- Licenses -->
195
+ <string name =" licenses" >Licencje</string >
196
+ <string name =" licenses_module_name" >Nazwa modułu:</string >
197
+ <string name =" licenses_module_version" >Wersja modułu:</string >
198
+ <string name =" licenses_module_license" >Licencja:</string >
199
+
194
200
</resources >
Original file line number Diff line number Diff line change 236
236
<string name =" sensors_magnetic_field" >Magnetic field</string >
237
237
<string name =" sensors_attitude" >Attitude</string >
238
238
239
+ <!-- Licenses -->
240
+ <string name =" licenses" >Licenses</string >
241
+ <string name =" licenses_module_name" >Module name:</string >
242
+ <string name =" licenses_module_version" >Module version:</string >
243
+ <string name =" licenses_module_license" >License:</string >
244
+
239
245
</resources >
Original file line number Diff line number Diff line change 1
1
package com.kgurgul.cpuinfo.features.settings.licenses
2
2
3
+ import androidx.compose.foundation.layout.WindowInsets
4
+ import androidx.compose.foundation.layout.WindowInsetsSides
5
+ import androidx.compose.foundation.layout.only
6
+ import androidx.compose.foundation.layout.safeDrawing
7
+ import androidx.compose.material3.Scaffold
3
8
import androidx.compose.runtime.Composable
4
9
import androidx.compose.ui.Modifier
10
+ import com.kgurgul.cpuinfo.shared.Res
11
+ import com.kgurgul.cpuinfo.shared.licenses
12
+ import com.kgurgul.cpuinfo.ui.components.PrimaryTopAppBar
13
+ import org.jetbrains.compose.resources.stringResource
5
14
import org.koin.compose.viewmodel.koinViewModel
6
15
7
16
@Composable
8
17
fun LicensesScreen (viewModel : LicensesViewModel = koinViewModel()) {
9
18
10
19
}
20
+
21
+ @Composable
22
+ fun LicensesScreen (uiState : LicensesViewModel .UiState ) {
23
+ Scaffold (
24
+ topBar = {
25
+ PrimaryTopAppBar (
26
+ title = stringResource(Res .string.licenses),
27
+ )
28
+ },
29
+ contentWindowInsets = WindowInsets .safeDrawing.only(WindowInsetsSides .Horizontal ),
30
+ ) { paddingValues ->
31
+
32
+ }
33
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import androidx.lifecycle.ViewModel
4
4
5
5
class LicensesViewModel : ViewModel () {
6
6
7
+
8
+
7
9
data class UiState (
8
10
val isLoading : Boolean = false ,
9
11
)
You can’t perform that action at this time.
0 commit comments