[DESKTOP] Extract app name to strings
This commit is contained in:
@@ -4,8 +4,10 @@ import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
import com.kgurgul.cpuinfo.di.initKoin
|
||||
import com.kgurgul.cpuinfo.shared.Res
|
||||
import com.kgurgul.cpuinfo.shared.app_name
|
||||
import com.kgurgul.cpuinfo.shared.desktop_icon
|
||||
import org.jetbrains.compose.resources.painterResource
|
||||
import org.jetbrains.compose.resources.stringResource
|
||||
import org.jetbrains.skia.DirectContext
|
||||
|
||||
fun main() {
|
||||
@@ -20,7 +22,7 @@ fun main() {
|
||||
return application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "CPU Info",
|
||||
title = stringResource(Res.string.app_name),
|
||||
icon = painterResource(Res.drawable.desktop_icon),
|
||||
) {
|
||||
DesktopApp()
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<resources>
|
||||
|
||||
<string name="action_not_supported">Action not available</string>
|
||||
<string name="app_name" translatable="false">CPU Info</string>
|
||||
|
||||
<string name="yes">Yes</string>
|
||||
<string name="no">No</string>
|
||||
@@ -27,6 +27,7 @@
|
||||
<string name="vram" translatable="false">VRAM</string>
|
||||
<string name="edid" translatable="false">EDID</string>
|
||||
<string name="menu" translatable="false">Menu</string>
|
||||
<string name="action_not_supported">Action not available</string>
|
||||
|
||||
<!--Tabs-->
|
||||
<string name="cpu">CPU</string>
|
||||
|
||||
Reference in New Issue
Block a user