Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Desktop
Commits
5e489eea
Verified
Commit
5e489eea
authored
3 years ago
by
Sebastian
Committed by
Mikolai Gütschow
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade to new Window API; set minimum window size
parent
316e5ac3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!27
Upgrade to new Window API; set minimum window size
Pipeline
#7733
passed
3 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/org/briarproject/briar/desktop/BriarService.kt
+8
-2
8 additions, 2 deletions
...ain/kotlin/org/briarproject/briar/desktop/BriarService.kt
with
8 additions
and
2 deletions
src/main/kotlin/org/briarproject/briar/desktop/BriarService.kt
+
8
−
2
View file @
5e489eea
package
org.briarproject.briar.desktop
package
org.briarproject.briar.desktop
import
androidx.compose.desktop.Window
import
androidx.compose.foundation.background
import
androidx.compose.foundation.background
import
androidx.compose.material.MaterialTheme
import
androidx.compose.material.MaterialTheme
import
androidx.compose.runtime.Composable
import
androidx.compose.runtime.Composable
...
@@ -11,6 +10,7 @@ import androidx.compose.runtime.mutableStateOf
...
@@ -11,6 +10,7 @@ import androidx.compose.runtime.mutableStateOf
import
androidx.compose.runtime.remember
import
androidx.compose.runtime.remember
import
androidx.compose.runtime.setValue
import
androidx.compose.runtime.setValue
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.window.Window
import
org.briarproject.bramble.api.account.AccountManager
import
org.briarproject.bramble.api.account.AccountManager
import
org.briarproject.bramble.api.contact.Contact
import
org.briarproject.bramble.api.contact.Contact
import
org.briarproject.bramble.api.contact.ContactManager
import
org.briarproject.bramble.api.contact.ContactManager
...
@@ -24,9 +24,11 @@ import org.briarproject.briar.desktop.dialogs.Registration
...
@@ -24,9 +24,11 @@ import org.briarproject.briar.desktop.dialogs.Registration
import
org.briarproject.briar.desktop.paul.theme.DarkColorPallet
import
org.briarproject.briar.desktop.paul.theme.DarkColorPallet
import
org.briarproject.briar.desktop.paul.theme.briarBlack
import
org.briarproject.briar.desktop.paul.theme.briarBlack
import
org.briarproject.briar.desktop.paul.views.BriarUIStateManager
import
org.briarproject.briar.desktop.paul.views.BriarUIStateManager
import
java.awt.Dimension
import
javax.annotation.concurrent.Immutable
import
javax.annotation.concurrent.Immutable
import
javax.inject.Inject
import
javax.inject.Inject
import
javax.inject.Singleton
import
javax.inject.Singleton
import
kotlin.system.exitProcess
enum
class
Screen
{
enum
class
Screen
{
REGISTRATION
,
REGISTRATION
,
...
@@ -81,7 +83,11 @@ constructor(
...
@@ -81,7 +83,11 @@ constructor(
}
}
)
)
}
}
Window
(
title
=
title
)
{
Window
(
title
=
title
,
onCloseRequest
=
{
exitProcess
(
0
)
},
)
{
window
.
minimumSize
=
Dimension
(
800
,
600
)
MaterialTheme
(
colors
=
DarkColorPallet
)
{
MaterialTheme
(
colors
=
DarkColorPallet
)
{
when
(
screenState
)
{
when
(
screenState
)
{
Screen
.
REGISTRATION
->
Screen
.
REGISTRATION
->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment