Removed submodules component
This commit is contained in:
parent
ff49090928
commit
03a52cb4ce
@ -13,12 +13,13 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import androidx.compose.ui.input.key.onPreviewKeyEvent
|
import androidx.compose.ui.input.key.onPreviewKeyEvent
|
||||||
import androidx.compose.ui.input.pointer.*
|
import androidx.compose.ui.input.pointer.*
|
||||||
|
|
||||||
fun Modifier.backgroundIf(condition: Boolean, color: Color): Modifier {
|
fun Modifier.backgroundIf(condition: Boolean, color: Color, elseColor: Color? = null): Modifier {
|
||||||
return if (condition) {
|
return if (condition) {
|
||||||
this.background(color)
|
this.background(color)
|
||||||
} else {
|
} else if(elseColor != null) {
|
||||||
|
this.background(elseColor)
|
||||||
|
} else
|
||||||
this
|
this
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Modifier.handMouseClickable(onClick: () -> Unit): Modifier {
|
fun Modifier.handMouseClickable(onClick: () -> Unit): Modifier {
|
||||||
|
@ -352,7 +352,7 @@ fun MainContentView(
|
|||||||
Remotes()
|
Remotes()
|
||||||
Tags()
|
Tags()
|
||||||
Stashes()
|
Stashes()
|
||||||
Submodules()
|
// TODO: Enable on 1.2.0 when fully implemented Submodules()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user