Skip to content

Commit

Permalink
Migrate TitleBarView to new Icon API (#546)
Browse files Browse the repository at this point in the history
* remove unnecessary class specification

reference #546 (review)

Signed-off-by: Ivan Morgillo <[email protected]>

* iterate on TitleBarView icons

Signed-off-by: Ivan Morgillo <[email protected]>

* iterate on TitleBarView icon using PainterHints

Signed-off-by: Ivan Morgillo <[email protected]>

* remove unused TitleBarView 20x20 icons

Signed-off-by: Ivan Morgillo <[email protected]>

* Revert "remove unused TitleBarView 20x20 icons"

This reverts commit fd872e2.

---------

Signed-off-by: Ivan Morgillo <[email protected]>
  • Loading branch information
hamen authored Aug 20, 2024
1 parent 37bd706 commit 576c345
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,30 @@ fun DecoratedWindowScope.TitleBarView() {
when (MainViewModel.theme) {
IntUiThemes.Light ->
Icon(
"icons/[email protected]",
"Themes",
StandaloneSampleIcons::class.java,
key = StandaloneSampleIcons.themeLight,
contentDescription = "Light",
hints = arrayOf(Size(20)),
)

IntUiThemes.LightWithLightHeader ->
Icon(
"icons/[email protected]",
"Themes",
StandaloneSampleIcons::class.java,
key = StandaloneSampleIcons.themeLightWithLightHeader,
contentDescription = "Light with light header",
hints = arrayOf(Size(20)),
)

IntUiThemes.Dark ->
Icon(
"icons/[email protected]",
"Themes",
StandaloneSampleIcons::class.java,
key = StandaloneSampleIcons.themeDark,
contentDescription = "Dark",
hints = arrayOf(Size(20)),
)

IntUiThemes.System ->
Icon(
"icons/[email protected]",
"Themes",
StandaloneSampleIcons::class.java,
key = StandaloneSampleIcons.themeSystem,
contentDescription = "System",
hints = arrayOf(Size(20)),
)
}
}
Expand Down

0 comments on commit 576c345

Please sign in to comment.