mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/build
|
||||
assets/hash.txt
|
||||
/src/main/assets/hash.txt
|
||||
*.po
|
||||
*.pot
|
||||
|
||||
@@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.ReadOnlyComposable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
@@ -63,8 +62,6 @@ fun GameDetails(game: Game) {
|
||||
}
|
||||
|
||||
|
||||
@ReadOnlyComposable
|
||||
@Composable
|
||||
private fun getTimePlayed(game: Game): String {
|
||||
if (game.minutesPlayed == 0) {
|
||||
return tr("Never played")
|
||||
@@ -83,8 +80,6 @@ private val DateFormatter = DateTimeFormatter.ofLocalizedDate(
|
||||
FormatStyle.SHORT
|
||||
)
|
||||
|
||||
@ReadOnlyComposable
|
||||
@Composable
|
||||
private fun getLastPlayedDate(game: Game): String {
|
||||
if (game.lastPlayedYear.toInt() == 0) {
|
||||
return tr("Never played")
|
||||
|
||||
-4
@@ -4,18 +4,14 @@ import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.graphics.Rect
|
||||
import android.util.DisplayMetrics.DENSITY_DEFAULT
|
||||
import androidx.annotation.IntRange
|
||||
import info.cemu.cemu.R
|
||||
import info.cemu.cemu.nativeinterface.NativeInput
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
|
||||
class OverlaySettings(
|
||||
var isVibrateOnTouchEnabled: Boolean,
|
||||
var isOverlayEnabled: Boolean,
|
||||
@IntRange(0, (NativeInput.MAX_CONTROLLERS - 1L))
|
||||
var controllerIndex: Int,
|
||||
@IntRange(0, 255)
|
||||
var alpha: Int,
|
||||
) {
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user