-
-
Save le0nidas/5c50e479f7a3820b66c068054d830b2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun foo(ui: Ui, system: System) { | |
val isGridLayout: Boolean = ui.itemsAreInGrid() | |
// Remove right margin when the theme is light and the layout is a list | |
if (!isGridLayout && !system.isDarkThemeEnabled()) { | |
val uiContainer = ui.container | |
uiContainer.rightMargin = 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment