Renamed colors properties
This commit is contained in:
parent
44774c2635
commit
47d1e89af2
@ -10,6 +10,12 @@ import androidx.compose.runtime.*
|
|||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.ExperimentalComposeUiApi
|
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.geometry.Size
|
||||||
|
import androidx.compose.ui.graphics.Color
|
||||||
|
import androidx.compose.ui.graphics.drawscope.DrawScope
|
||||||
|
import androidx.compose.ui.graphics.painter.Painter
|
||||||
|
import androidx.compose.ui.input.key.Key
|
||||||
|
import androidx.compose.ui.input.key.KeyShortcut
|
||||||
import androidx.compose.ui.platform.LocalDensity
|
import androidx.compose.ui.platform.LocalDensity
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.unit.Density
|
import androidx.compose.ui.unit.Density
|
||||||
@ -26,15 +32,17 @@ import com.jetpackduba.gitnuro.logging.printLog
|
|||||||
import com.jetpackduba.gitnuro.preferences.AppSettings
|
import com.jetpackduba.gitnuro.preferences.AppSettings
|
||||||
import com.jetpackduba.gitnuro.theme.AppTheme
|
import com.jetpackduba.gitnuro.theme.AppTheme
|
||||||
import com.jetpackduba.gitnuro.theme.Theme
|
import com.jetpackduba.gitnuro.theme.Theme
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.AppTab
|
import com.jetpackduba.gitnuro.ui.AppTab
|
||||||
import com.jetpackduba.gitnuro.ui.components.RepositoriesTabPanel
|
import com.jetpackduba.gitnuro.ui.components.RepositoriesTabPanel
|
||||||
import com.jetpackduba.gitnuro.ui.components.TabInformation
|
import com.jetpackduba.gitnuro.ui.components.TabInformation
|
||||||
import com.jetpackduba.gitnuro.ui.components.emptyTabInformation
|
import com.jetpackduba.gitnuro.ui.components.emptyTabInformation
|
||||||
|
import com.jetpackduba.gitnuro.ui.context_menu.Separator
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
import androidx.compose.ui.window.MenuBar
|
||||||
|
|
||||||
private const val TAG = "App"
|
private const val TAG = "App"
|
||||||
|
|
||||||
@ -255,7 +263,15 @@ fun LoadingRepository(repoPath: String) {
|
|||||||
) {
|
) {
|
||||||
Column(horizontalAlignment = Alignment.CenterHorizontally) {
|
Column(horizontalAlignment = Alignment.CenterHorizontally) {
|
||||||
Text("Opening repository", fontSize = 36.sp, color = MaterialTheme.colors.onBackground)
|
Text("Opening repository", fontSize = 36.sp, color = MaterialTheme.colors.onBackground)
|
||||||
Text(repoPath, fontSize = 24.sp, color = MaterialTheme.colors.secondaryTextColor)
|
Text(repoPath, fontSize = 24.sp, color = MaterialTheme.colors.onBackgroundSecondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object AboutIcon : Painter() {
|
||||||
|
override val intrinsicSize = Size(256f, 256f)
|
||||||
|
|
||||||
|
override fun DrawScope.onDraw() {
|
||||||
|
drawOval(Color(0xFFFFA500))
|
||||||
|
}
|
||||||
|
}
|
@ -198,4 +198,8 @@ enum class RefreshType {
|
|||||||
UNCOMMITED_CHANGES,
|
UNCOMMITED_CHANGES,
|
||||||
UNCOMMITED_CHANGES_AND_LOG,
|
UNCOMMITED_CHANGES_AND_LOG,
|
||||||
REMOTES,
|
REMOTES,
|
||||||
|
}
|
||||||
|
|
||||||
|
enum class Processing {
|
||||||
|
|
||||||
}
|
}
|
@ -7,16 +7,15 @@ val lightTheme = ColorsScheme(
|
|||||||
primaryVariant = Color(0xFF0070D8),
|
primaryVariant = Color(0xFF0070D8),
|
||||||
onPrimary = Color(0xFFFFFFFFF),
|
onPrimary = Color(0xFFFFFFFFF),
|
||||||
secondary = Color(0xFF9c27b0),
|
secondary = Color(0xFF9c27b0),
|
||||||
primaryText = Color(0xFF212934),
|
onBackground = Color(0xFF212934),
|
||||||
secondaryText = Color(0xFF595858),
|
onBackgroundSecondary = Color(0xFF595858),
|
||||||
error = Color(0xFFc93838),
|
error = Color(0xFFc93838),
|
||||||
onError = Color(0xFFFFFFFF),
|
onError = Color(0xFFFFFFFF),
|
||||||
background = Color(0xFFFFFFFF),
|
background = Color(0xFFFFFFFF),
|
||||||
backgroundSelected = Color(0xC0cee1f2),
|
backgroundSelected = Color(0xC0cee1f2),
|
||||||
surface = Color(0xFFf3f5f7),
|
surface = Color(0xFFf3f5f7),
|
||||||
secondarySurface = Color(0xFFE9ECEF),
|
secondarySurface = Color(0xFFE9ECEF),
|
||||||
headerBackground = Color(0xFFE9ECEF),
|
tertiarySurface = Color(0xFFE9ECEF),
|
||||||
borderColor = Color(0xFF989898),
|
|
||||||
addFile = Color(0xFF32A852),
|
addFile = Color(0xFF32A852),
|
||||||
deletedFile = Color(0xFFc93838),
|
deletedFile = Color(0xFFc93838),
|
||||||
modifiedFile = Color(0xFF0070D8),
|
modifiedFile = Color(0xFF0070D8),
|
||||||
@ -35,16 +34,15 @@ val darkBlueTheme = ColorsScheme(
|
|||||||
primaryVariant = Color(0xFF9FD1FF),
|
primaryVariant = Color(0xFF9FD1FF),
|
||||||
onPrimary = Color(0xFFFFFFFFF),
|
onPrimary = Color(0xFFFFFFFFF),
|
||||||
secondary = Color(0xFFe9c754),
|
secondary = Color(0xFFe9c754),
|
||||||
primaryText = Color(0xFFFFFFFF),
|
onBackground = Color(0xFFFFFFFF),
|
||||||
secondaryText = Color(0xFFCCCBCB),
|
onBackgroundSecondary = Color(0xFFCCCBCB),
|
||||||
error = Color(0xFFc93838),
|
error = Color(0xFFc93838),
|
||||||
onError = Color(0xFFFFFFFF),
|
onError = Color(0xFFFFFFFF),
|
||||||
background = Color(0xFF0E1621),
|
background = Color(0xFF0E1621),
|
||||||
backgroundSelected = Color(0xFF2f3640),
|
backgroundSelected = Color(0xFF2f3640),
|
||||||
surface = Color(0xFF182533),
|
surface = Color(0xFF182533),
|
||||||
secondarySurface = Color(0xFF122C46),
|
secondarySurface = Color(0xFF122C46),
|
||||||
headerBackground = Color(0xFF0a335c),
|
tertiarySurface = Color(0xFF0a335c),
|
||||||
borderColor = Color(0xFF989898),
|
|
||||||
addFile = Color(0xFF32A852),
|
addFile = Color(0xFF32A852),
|
||||||
deletedFile = Color(0xFFc93838),
|
deletedFile = Color(0xFFc93838),
|
||||||
modifiedFile = Color(0xFF0070D8),
|
modifiedFile = Color(0xFF0070D8),
|
||||||
@ -62,16 +60,15 @@ val darkGrayTheme = ColorsScheme(
|
|||||||
primaryVariant = Color(0xFFCDEAFF),
|
primaryVariant = Color(0xFFCDEAFF),
|
||||||
onPrimary = Color(0xFFFFFFFFF),
|
onPrimary = Color(0xFFFFFFFFF),
|
||||||
secondary = Color(0xFFe9c754),
|
secondary = Color(0xFFe9c754),
|
||||||
primaryText = Color(0xFFFFFFFF),
|
onBackground = Color(0xFFFFFFFF),
|
||||||
secondaryText = Color(0xFFCCCBCB),
|
onBackgroundSecondary = Color(0xFFCCCBCB),
|
||||||
error = Color(0xFFc93838),
|
error = Color(0xFFc93838),
|
||||||
onError = Color(0xFFFFFFFF),
|
onError = Color(0xFFFFFFFF),
|
||||||
background = Color(0xFF16181F),
|
background = Color(0xFF16181F),
|
||||||
backgroundSelected = Color(0xFF32373e),
|
backgroundSelected = Color(0xFF32373e),
|
||||||
surface = Color(0xFF212731),
|
surface = Color(0xFF212731),
|
||||||
secondarySurface = Color(0xFF282d36),
|
secondarySurface = Color(0xFF282d36),
|
||||||
headerBackground = Color(0xFF21303d),
|
tertiarySurface = Color(0xFF21303d),
|
||||||
borderColor = Color(0xFF989898),
|
|
||||||
addFile = Color(0xFF32A852),
|
addFile = Color(0xFF32A852),
|
||||||
deletedFile = Color(0xFFc93838),
|
deletedFile = Color(0xFFc93838),
|
||||||
modifiedFile = Color(0xFF0070D8),
|
modifiedFile = Color(0xFF0070D8),
|
||||||
|
@ -20,17 +20,15 @@ data class ColorsScheme(
|
|||||||
val primaryVariant: Color,
|
val primaryVariant: Color,
|
||||||
val onPrimary: Color,
|
val onPrimary: Color,
|
||||||
val secondary: Color,
|
val secondary: Color,
|
||||||
val primaryText: Color,
|
val onBackground: Color,
|
||||||
val secondaryText: Color,
|
val onBackgroundSecondary: Color,
|
||||||
val error: Color,
|
val error: Color,
|
||||||
val onError: Color,
|
val onError: Color,
|
||||||
val background: Color,
|
val background: Color,
|
||||||
val backgroundSelected: Color,
|
val backgroundSelected: Color,
|
||||||
val surface: Color,
|
val surface: Color,
|
||||||
val secondarySurface: Color,
|
val secondarySurface: Color,
|
||||||
val headerBackground: Color,
|
val tertiarySurface: Color,
|
||||||
val onHeader: Color = primaryText,
|
|
||||||
val borderColor: Color,
|
|
||||||
val addFile: Color,
|
val addFile: Color,
|
||||||
val deletedFile: Color,
|
val deletedFile: Color,
|
||||||
val modifiedFile: Color,
|
val modifiedFile: Color,
|
||||||
@ -53,8 +51,8 @@ data class ColorsScheme(
|
|||||||
error = this.error,
|
error = this.error,
|
||||||
onPrimary = this.onPrimary,
|
onPrimary = this.onPrimary,
|
||||||
onSecondary = this.onPrimary,
|
onSecondary = this.onPrimary,
|
||||||
onBackground = this.primaryText,
|
onBackground = this.onBackground,
|
||||||
onSurface = this.primaryText,
|
onSurface = this.onBackground,
|
||||||
onError = this.onError,
|
onError = this.onError,
|
||||||
isLight = isLight,
|
isLight = isLight,
|
||||||
)
|
)
|
||||||
|
@ -13,7 +13,7 @@ fun textFieldColors(
|
|||||||
focusedLabelColor: Color = MaterialTheme.colors.primaryVariant,
|
focusedLabelColor: Color = MaterialTheme.colors.primaryVariant,
|
||||||
backgroundColor: Color = MaterialTheme.colors.background,
|
backgroundColor: Color = MaterialTheme.colors.background,
|
||||||
textColor: Color = MaterialTheme.colors.onBackground,
|
textColor: Color = MaterialTheme.colors.onBackground,
|
||||||
disabledTextColor: Color = MaterialTheme.colors.secondaryTextColor,
|
disabledTextColor: Color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
) = TextFieldDefaults.textFieldColors(
|
) = TextFieldDefaults.textFieldColors(
|
||||||
cursorColor = cursorColor,
|
cursorColor = cursorColor,
|
||||||
focusedIndicatorColor = focusedIndicatorColor,
|
focusedIndicatorColor = focusedIndicatorColor,
|
||||||
|
@ -37,38 +37,28 @@ fun AppTheme(
|
|||||||
val Colors.backgroundSelected: Color
|
val Colors.backgroundSelected: Color
|
||||||
get() = appTheme.backgroundSelected
|
get() = appTheme.backgroundSelected
|
||||||
|
|
||||||
@get:Composable
|
val Colors.onBackgroundSecondary: Color
|
||||||
val Colors.secondaryTextColor: Color
|
get() = appTheme.onBackgroundSecondary
|
||||||
get() = appTheme.secondaryText
|
|
||||||
|
|
||||||
@get:Composable
|
val Colors.secondarySurface: Color
|
||||||
val Colors.borderColor: Color
|
get() = appTheme.secondarySurface
|
||||||
get() = appTheme.borderColor
|
|
||||||
|
val Colors.tertiarySurface: Color
|
||||||
|
get() = appTheme.tertiarySurface
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.headerBackground: Color
|
|
||||||
get() = appTheme.headerBackground
|
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.addFile: Color
|
val Colors.addFile: Color
|
||||||
get() = appTheme.addFile
|
get() = appTheme.addFile
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.deleteFile: Color
|
val Colors.deleteFile: Color
|
||||||
get() = appTheme.deletedFile
|
get() = appTheme.deletedFile
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.modifyFile: Color
|
val Colors.modifyFile: Color
|
||||||
get() = appTheme.modifiedFile
|
get() = appTheme.modifiedFile
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.conflictFile: Color
|
val Colors.conflictFile: Color
|
||||||
get() = appTheme.conflictingFile
|
get() = appTheme.conflictingFile
|
||||||
|
|
||||||
@get:Composable
|
|
||||||
val Colors.headerText: Color
|
|
||||||
get() = appTheme.onHeader
|
|
||||||
|
|
||||||
val Colors.abortButton: Color
|
val Colors.abortButton: Color
|
||||||
get() = appTheme.error
|
get() = appTheme.error
|
||||||
|
|
||||||
@ -78,9 +68,6 @@ val Colors.scrollbarNormal: Color
|
|||||||
val Colors.scrollbarHover: Color
|
val Colors.scrollbarHover: Color
|
||||||
get() = appTheme.hoverScrollbar
|
get() = appTheme.hoverScrollbar
|
||||||
|
|
||||||
val Colors.secondarySurface: Color
|
|
||||||
get() = appTheme.secondarySurface
|
|
||||||
|
|
||||||
val Colors.dialogOverlay: Color
|
val Colors.dialogOverlay: Color
|
||||||
get() = appTheme.dialogOverlay
|
get() = appTheme.dialogOverlay
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import androidx.compose.ui.unit.dp
|
|||||||
import com.jetpackduba.gitnuro.extensions.*
|
import com.jetpackduba.gitnuro.extensions.*
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.headerBackground
|
import com.jetpackduba.gitnuro.theme.tertiarySurface
|
||||||
import com.jetpackduba.gitnuro.theme.secondarySurface
|
import com.jetpackduba.gitnuro.theme.secondarySurface
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
import com.jetpackduba.gitnuro.ui.components.ScrollableLazyColumn
|
import com.jetpackduba.gitnuro.ui.components.ScrollableLazyColumn
|
||||||
@ -202,7 +202,7 @@ private fun Header(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(40.dp)
|
.height(40.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground)
|
.background(MaterialTheme.colors.tertiarySurface)
|
||||||
.padding(start = 8.dp, end = 8.dp),
|
.padding(start = 8.dp, end = 8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
|
@ -12,7 +12,7 @@ import androidx.compose.ui.res.painterResource
|
|||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.extensions.isLocal
|
import com.jetpackduba.gitnuro.extensions.isLocal
|
||||||
import com.jetpackduba.gitnuro.extensions.simpleName
|
import com.jetpackduba.gitnuro.extensions.simpleName
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.SideMenuPanel
|
import com.jetpackduba.gitnuro.ui.components.SideMenuPanel
|
||||||
import com.jetpackduba.gitnuro.ui.components.SideMenuSubentry
|
import com.jetpackduba.gitnuro.ui.components.SideMenuSubentry
|
||||||
import com.jetpackduba.gitnuro.ui.components.gitnuroViewModel
|
import com.jetpackduba.gitnuro.ui.components.gitnuroViewModel
|
||||||
@ -94,7 +94,7 @@ private fun BranchLineEntry(
|
|||||||
if (isCurrentBranch) {
|
if (isCurrentBranch) {
|
||||||
Text(
|
Text(
|
||||||
text = "HEAD",
|
text = "HEAD",
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.caption,
|
style = MaterialTheme.typography.caption,
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
)
|
)
|
||||||
|
@ -96,7 +96,7 @@ fun CommitChangesView(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(34.dp)
|
.height(34.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground),
|
.background(MaterialTheme.colors.tertiarySurface),
|
||||||
contentAlignment = Alignment.CenterStart,
|
contentAlignment = Alignment.CenterStart,
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
@ -105,7 +105,7 @@ fun CommitChangesView(
|
|||||||
text = "Files changed",
|
text = "Files changed",
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
textAlign = TextAlign.Left,
|
textAlign = TextAlign.Left,
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.onBackground,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
)
|
)
|
||||||
@ -158,7 +158,7 @@ fun Author(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(72.dp)
|
.height(72.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground),
|
.background(MaterialTheme.colors.tertiarySurface),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
AvatarImage(
|
AvatarImage(
|
||||||
@ -183,7 +183,7 @@ fun Author(
|
|||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||||
Text(
|
Text(
|
||||||
text = id.abbreviate(7).name(),
|
text = id.abbreviate(7).name(),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
modifier = Modifier.handMouseClickable {
|
modifier = Modifier.handMouseClickable {
|
||||||
@ -219,7 +219,7 @@ fun Author(
|
|||||||
|
|
||||||
TooltipText(
|
TooltipText(
|
||||||
text = smartDate,
|
text = smartDate,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
@ -286,7 +286,7 @@ fun CommitLogChanges(
|
|||||||
softWrap = false,
|
softWrap = false,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
|
@ -27,8 +27,8 @@ import com.jetpackduba.gitnuro.extensions.toSmartSystemString
|
|||||||
import com.jetpackduba.gitnuro.git.diff.DiffResult
|
import com.jetpackduba.gitnuro.git.diff.DiffResult
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.headerBackground
|
import com.jetpackduba.gitnuro.theme.tertiarySurface
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.AvatarImage
|
import com.jetpackduba.gitnuro.ui.components.AvatarImage
|
||||||
import com.jetpackduba.gitnuro.ui.components.ScrollableLazyColumn
|
import com.jetpackduba.gitnuro.ui.components.ScrollableLazyColumn
|
||||||
import com.jetpackduba.gitnuro.ui.components.TooltipText
|
import com.jetpackduba.gitnuro.ui.components.TooltipText
|
||||||
@ -85,7 +85,7 @@ private fun Header(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(40.dp)
|
.height(40.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground)
|
.background(MaterialTheme.colors.tertiarySurface)
|
||||||
.padding(start = 8.dp, end = 8.dp),
|
.padding(start = 8.dp, end = 8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
@ -235,7 +235,7 @@ fun HistoryCommit(commit: RevCommit, onCommitSelected: () -> Unit) {
|
|||||||
text = commit.name.take(7),
|
text = commit.name.take(7),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.weight(1f))
|
Spacer(modifier = Modifier.weight(1f))
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ fun HistoryCommit(commit: RevCommit, onCommitSelected: () -> Unit) {
|
|||||||
|
|
||||||
TooltipText(
|
TooltipText(
|
||||||
text = date,
|
text = date,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
|
@ -9,7 +9,7 @@ import androidx.compose.runtime.getValue
|
|||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.SideMenuPanel
|
import com.jetpackduba.gitnuro.ui.components.SideMenuPanel
|
||||||
import com.jetpackduba.gitnuro.ui.components.SideMenuSubentry
|
import com.jetpackduba.gitnuro.ui.components.SideMenuSubentry
|
||||||
import com.jetpackduba.gitnuro.ui.components.Tooltip
|
import com.jetpackduba.gitnuro.ui.components.Tooltip
|
||||||
@ -62,7 +62,7 @@ private fun SubmoduleLineEntry(
|
|||||||
Tooltip(stateName) {
|
Tooltip(stateName) {
|
||||||
Text(
|
Text(
|
||||||
text = stateName.first().toString(),
|
text = stateName.first().toString(),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
)
|
)
|
||||||
|
@ -511,7 +511,7 @@ private fun EntriesList(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(34.dp)
|
.height(34.dp)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.background(color = MaterialTheme.colors.headerBackground)
|
.background(color = MaterialTheme.colors.tertiarySurface)
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@ -520,7 +520,7 @@ private fun EntriesList(
|
|||||||
text = title,
|
text = title,
|
||||||
fontWeight = FontWeight.Normal,
|
fontWeight = FontWeight.Normal,
|
||||||
textAlign = TextAlign.Left,
|
textAlign = TextAlign.Left,
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.onBackground,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
@ -611,7 +611,7 @@ private fun FileEntry(
|
|||||||
softWrap = false,
|
softWrap = false,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
|
@ -23,7 +23,7 @@ import androidx.compose.ui.unit.dp
|
|||||||
import com.jetpackduba.gitnuro.AppConstants
|
import com.jetpackduba.gitnuro.AppConstants
|
||||||
import com.jetpackduba.gitnuro.AppStateManager
|
import com.jetpackduba.gitnuro.AppStateManager
|
||||||
import com.jetpackduba.gitnuro.extensions.*
|
import com.jetpackduba.gitnuro.extensions.*
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.theme.textButtonColors
|
import com.jetpackduba.gitnuro.theme.textButtonColors
|
||||||
import com.jetpackduba.gitnuro.ui.dialogs.AppInfoDialog
|
import com.jetpackduba.gitnuro.ui.dialogs.AppInfoDialog
|
||||||
import com.jetpackduba.gitnuro.ui.dialogs.CloneDialog
|
import com.jetpackduba.gitnuro.ui.dialogs.CloneDialog
|
||||||
@ -202,7 +202,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo
|
|||||||
if (latestOpenedRepositoriesPaths.isEmpty()) {
|
if (latestOpenedRepositoriesPaths.isEmpty()) {
|
||||||
Text(
|
Text(
|
||||||
"Nothing to see here, open a repository first!",
|
"Nothing to see here, open a repository first!",
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body1,
|
style = MaterialTheme.typography.body1,
|
||||||
modifier = Modifier.padding(top = 16.dp)
|
modifier = Modifier.padding(top = 16.dp)
|
||||||
)
|
)
|
||||||
@ -237,7 +237,7 @@ fun RecentRepositories(appStateManager: AppStateManager, tabViewModel: TabViewMo
|
|||||||
style = MaterialTheme.typography.body1,
|
style = MaterialTheme.typography.body1,
|
||||||
modifier = Modifier.padding(start = 4.dp),
|
modifier = Modifier.padding(start = 4.dp),
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
color = MaterialTheme.colors.secondaryTextColor
|
color = MaterialTheme.colors.onBackgroundSecondary
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ import androidx.compose.ui.text.font.FontWeight
|
|||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
|
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun SideMenuEntry(
|
fun SideMenuEntry(
|
||||||
@ -76,7 +76,7 @@ fun SideMenuEntry(
|
|||||||
text = itemsCount.toString(),
|
text = itemsCount.toString(),
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
fontWeight = FontWeight.Medium,
|
fontWeight = FontWeight.Medium,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
modifier = Modifier.padding(end = 16.dp),
|
modifier = Modifier.padding(end = 16.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ import androidx.compose.ui.window.PopupPositionProvider
|
|||||||
import com.jetpackduba.gitnuro.extensions.awaitFirstDownEvent
|
import com.jetpackduba.gitnuro.extensions.awaitFirstDownEvent
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import java.awt.event.MouseEvent
|
import java.awt.event.MouseEvent
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ fun TextEntry(contextTextEntry: ContextMenuElement.ContextTextEntry, onDismissRe
|
|||||||
painter = icon(),
|
painter = icon(),
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
tint = (MaterialTheme.colors.secondaryTextColor.copy(alpha = 0.8f))
|
tint = (MaterialTheme.colors.onBackgroundSecondary.copy(alpha = 0.8f))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ import com.jetpackduba.gitnuro.extensions.handMouseClickable
|
|||||||
import com.jetpackduba.gitnuro.extensions.handOnHover
|
import com.jetpackduba.gitnuro.extensions.handOnHover
|
||||||
import com.jetpackduba.gitnuro.theme.backgroundSelected
|
import com.jetpackduba.gitnuro.theme.backgroundSelected
|
||||||
import com.jetpackduba.gitnuro.theme.outlinedTextFieldColors
|
import com.jetpackduba.gitnuro.theme.outlinedTextFieldColors
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.theme.textButtonColors
|
import com.jetpackduba.gitnuro.theme.textButtonColors
|
||||||
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
@ -142,7 +142,7 @@ fun EditRemotesDialog(
|
|||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = "No available remotes",
|
text = "No available remotes",
|
||||||
style = MaterialTheme.typography.body2.copy(color = MaterialTheme.colors.secondaryTextColor)
|
style = MaterialTheme.typography.body2.copy(color = MaterialTheme.colors.onBackgroundSecondary)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -196,7 +196,7 @@ fun EditRemotesDialog(
|
|||||||
tint = if (selectedRemote != null)
|
tint = if (selectedRemote != null)
|
||||||
MaterialTheme.colors.onBackground
|
MaterialTheme.colors.onBackground
|
||||||
else
|
else
|
||||||
MaterialTheme.colors.secondaryTextColor,
|
MaterialTheme.colors.onBackgroundSecondary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ import androidx.compose.ui.text.style.TextAlign
|
|||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ fun NewBranchDialog(
|
|||||||
text = "Create a new branch and check it out",
|
text = "Create a new branch and check it out",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(bottom = 16.dp),
|
.padding(bottom = 16.dp),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
|
@ -17,7 +17,7 @@ import androidx.compose.ui.text.style.TextAlign
|
|||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ fun NewTagDialog(
|
|||||||
text = "Create a new tag on the specified commit",
|
text = "Create a new tag on the specified commit",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(bottom = 16.dp),
|
.padding(bottom = 16.dp),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
|
@ -19,7 +19,7 @@ import androidx.compose.ui.unit.dp
|
|||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.outlinedTextFieldColors
|
import com.jetpackduba.gitnuro.theme.outlinedTextFieldColors
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ fun PasswordDialog(
|
|||||||
text = "Your SSH key is protected with a password",
|
text = "Your SSH key is protected with a password",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(bottom = 16.dp),
|
.padding(bottom = 16.dp),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
|
@ -17,7 +17,7 @@ import androidx.compose.ui.res.painterResource
|
|||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.git.log.ResetType
|
import com.jetpackduba.gitnuro.git.log.ResetType
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
@ -52,7 +52,7 @@ fun ResetBranchDialog(
|
|||||||
text = "Reset the changes of your current branch to a \nprevious or different commit",
|
text = "Reset the changes of your current branch to a \nprevious or different commit",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(bottom = 16.dp),
|
.padding(bottom = 16.dp),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
@ -155,7 +155,7 @@ fun RadioButtonText(
|
|||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = subtitle,
|
text = subtitle,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ import androidx.compose.ui.text.style.TextAlign
|
|||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
import com.jetpackduba.gitnuro.keybindings.KeybindingOption
|
||||||
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
import com.jetpackduba.gitnuro.keybindings.matchesBinding
|
||||||
import com.jetpackduba.gitnuro.theme.secondaryTextColor
|
import com.jetpackduba.gitnuro.theme.onBackgroundSecondary
|
||||||
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
import com.jetpackduba.gitnuro.ui.components.AdjustableOutlinedTextField
|
||||||
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
import com.jetpackduba.gitnuro.ui.components.PrimaryButton
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ fun StashWithMessageDialog(
|
|||||||
text = "Create a new stash with a custom message",
|
text = "Create a new stash with a custom message",
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(bottom = 16.dp),
|
.padding(bottom = 16.dp),
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
|
@ -464,7 +464,7 @@ private fun FieldTitles(
|
|||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = subtitle,
|
text = subtitle,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
modifier = Modifier.padding(top = 4.dp),
|
modifier = Modifier.padding(top = 4.dp),
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
)
|
)
|
||||||
|
@ -621,7 +621,7 @@ private fun DiffHeader(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(40.dp)
|
.height(40.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground)
|
.background(MaterialTheme.colors.tertiarySurface)
|
||||||
.padding(start = 8.dp, end = 8.dp),
|
.padding(start = 8.dp, end = 8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
@ -759,7 +759,7 @@ private fun PathOnlyDiffHeader(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(40.dp)
|
.height(40.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground)
|
.background(MaterialTheme.colors.tertiarySurface)
|
||||||
.padding(start = 8.dp, end = 8.dp),
|
.padding(start = 8.dp, end = 8.dp),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
|
@ -304,7 +304,7 @@ fun SearchFilter(
|
|||||||
if (searchFilterText.isNotEmpty()) {
|
if (searchFilterText.isNotEmpty()) {
|
||||||
Text(
|
Text(
|
||||||
"${searchFilterResults.index}/${searchFilterResults.totalCount}",
|
"${searchFilterResults.index}/${searchFilterResults.totalCount}",
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -557,7 +557,7 @@ fun GraphHeader(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(34.dp)
|
.height(34.dp)
|
||||||
.background(MaterialTheme.colors.headerBackground),
|
.background(MaterialTheme.colors.tertiarySurface),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
@ -565,7 +565,7 @@ fun GraphHeader(
|
|||||||
.width(graphWidth)
|
.width(graphWidth)
|
||||||
.padding(start = 16.dp),
|
.padding(start = 16.dp),
|
||||||
text = "Graph",
|
text = "Graph",
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.onBackground,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
@ -585,7 +585,7 @@ fun GraphHeader(
|
|||||||
.padding(start = 16.dp)
|
.padding(start = 16.dp)
|
||||||
.weight(1f),
|
.weight(1f),
|
||||||
text = "Message",
|
text = "Message",
|
||||||
color = MaterialTheme.colors.headerText,
|
color = MaterialTheme.colors.onBackground,
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
@ -845,7 +845,7 @@ fun CommitMessage(
|
|||||||
.padding(start = 8.dp)
|
.padding(start = 8.dp)
|
||||||
.weight(1f),
|
.weight(1f),
|
||||||
style = MaterialTheme.typography.body2,
|
style = MaterialTheme.typography.body2,
|
||||||
color = if (matchesSearchFilter == false) MaterialTheme.colors.secondaryTextColor else MaterialTheme.colors.onBackground,
|
color = if (matchesSearchFilter == false) MaterialTheme.colors.onBackgroundSecondary else MaterialTheme.colors.onBackground,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
@ -854,7 +854,7 @@ fun CommitMessage(
|
|||||||
text = commit.authorIdent.`when`.toSmartSystemString(),
|
text = commit.authorIdent.`when`.toSmartSystemString(),
|
||||||
modifier = Modifier.padding(horizontal = 16.dp),
|
modifier = Modifier.padding(horizontal = 16.dp),
|
||||||
style = MaterialTheme.typography.caption,
|
style = MaterialTheme.typography.caption,
|
||||||
color = MaterialTheme.colors.secondaryTextColor,
|
color = MaterialTheme.colors.onBackgroundSecondary,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user