Skip to content

Commit

Permalink
Change Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidot725 committed Mar 26, 2023
1 parent a249c46 commit f0a86de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/view/MainWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fun MainWindow(
undecorated = true,
transparent = true,
alwaysOnTop = alwaysOnTop,
icon = painterResource(Images.DEVICE),
icon = painterResource(Images.TRAY),
) {
Card(
shape = RoundedCornerShape(8.dp),
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/view/pages/info/InfoDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.loadImageBitmap
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.useResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import view.resource.Images
import view.resource.MainTheme
import view.resource.Strings
import view.resource.Strings.INFO_TITLE
Expand All @@ -30,6 +32,7 @@ fun InfoDialog(isDark: Boolean, onClose: () -> Unit) {
Dialog(
onCloseRequest = onClose,
title = INFO_TITLE,
icon = painterResource(Images.TRAY),
) {
Surface {
InfoContent(modifier = Modifier.fillMaxSize())
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/view/pages/license/LicenseDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package view.pages.license
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.useResource
import androidx.compose.ui.window.Dialog
import com.mikepenz.aboutlibraries.ui.compose.LibrariesContainer
import view.resource.Images
import view.resource.MainTheme
import view.resource.Strings.LICENSE_TITLE

Expand All @@ -17,6 +19,7 @@ fun LicenseDialog(isDark: Boolean, onClose: () -> Unit) {
Dialog(
onCloseRequest = onClose,
title = LICENSE_TITLE,
icon = painterResource(Images.TRAY),
) {
LibrariesContainer(
useResource(FILE_NAME) { it.bufferedReader().readText() },
Expand Down

0 comments on commit f0a86de

Please sign in to comment.