Skip to content

Commit

Permalink
change disconnect button color and run codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Dec 5, 2023
1 parent 78cbf29 commit d7a6066
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "CodeQL"

on:
push:
branches: [ "compose" ]
branches: [ "5.x" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "compose" ]
branches: [ "5.x" ]

jobs:
analyze:
Expand All @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Manual Java Build
if: matrix.language == 'java'
run: |
./gradlew app:build
./gradlew build
- name: Manual Javascript Build
if: matrix.language == 'javascript'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ actual fun CastDialog(component: CastComponent) {
onClick = {
Kast.unselect(UnselectReason.disconnected)
component.dismiss()
}
},
colors = ButtonDefaults.buttonColors(
containerColor = MaterialTheme.colorScheme.errorContainer,
contentColor = MaterialTheme.colorScheme.onErrorContainer
)
) {
Text(text = stringResource(SharedRes.strings.disconnect))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ fun LanguageDialog(component: LanguageComponent) {
onClick = {
component.dismiss()
},
modifier = Modifier.padding(bottom = 8.dp),
colors = ButtonDefaults.buttonColors(
containerColor = MaterialTheme.colorScheme.errorContainer,
contentColor = MaterialTheme.colorScheme.onErrorContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ fun SeasonDialog(component: SeasonComponent) {
onClick = {
component.dismiss()
},
modifier = Modifier.padding(bottom = 8.dp),
colors = ButtonDefaults.buttonColors(
containerColor = MaterialTheme.colorScheme.errorContainer,
contentColor = MaterialTheme.colorScheme.onErrorContainer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.datlag.burningseries.shared.common

import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.onClick
import androidx.compose.foundation.onClick as defaultClick
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ImageBitmap
Expand All @@ -22,7 +22,7 @@ actual fun Modifier.onClick(
onLongClick: (() -> Unit)?,
onClick: () -> Unit
): Modifier {
return this.onClick(
return this.defaultClick(
enabled = enabled,
onDoubleClick = onDoubleClick,
onLongClick = onLongClick,
Expand Down

0 comments on commit d7a6066

Please sign in to comment.