Skip to content

Commit

Permalink
redesign about page (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir1376 authored Dec 27, 2024
1 parent a4c0995 commit c91cbb0
Show file tree
Hide file tree
Showing 7 changed files with 444 additions and 112 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.abdownloadmanager.desktop.pages.about

import com.abdownloadmanager.desktop.AppComponent
import com.abdownloadmanager.desktop.ui.Ui
import com.abdownloadmanager.desktop.ui.customwindow.CustomWindow
import com.abdownloadmanager.desktop.ui.customwindow.WindowTitle
import androidx.compose.runtime.Composable
Expand All @@ -11,9 +10,10 @@ import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.WindowPosition
import androidx.compose.ui.window.rememberWindowState
import com.abdownloadmanager.desktop.ui.customwindow.WindowIcon
import com.abdownloadmanager.desktop.ui.icon.MyIcons
import com.abdownloadmanager.desktop.ui.theme.LocalUiScale
import com.abdownloadmanager.resources.Res
import com.abdownloadmanager.resources.*
import ir.amirab.util.compose.resources.myStringResource
import ir.amirab.util.desktop.screen.applyUiScale

Expand Down Expand Up @@ -43,16 +43,18 @@ fun AboutDialog(
CustomWindow(
resizable = false,
onRequestToggleMaximize = null,
alwaysOnTop = false,
onRequestMinimize = null,
state = rememberWindowState(
position = WindowPosition.Aligned(Alignment.Center),
size = DpSize(400.dp, 350.dp)
size = DpSize(600.dp, 310.dp)
.applyUiScale(LocalUiScale.current)
),
onCloseRequest = onClose
) {
WindowTitle(myStringResource(Res.string.about))
WindowIcon(MyIcons.info)
AboutPage(
close = onClose,
onRequestShowOpenSourceLibraries = onRequestShowOpenSourceLibraries,
onRequestShowTranslators = onRequestShowTranslators
)
Expand Down
Loading

0 comments on commit c91cbb0

Please sign in to comment.