remove some unused resource strings, and mark others for possible future removal

This commit is contained in:
Helium314 2025-03-02 09:36:13 +01:00
parent 5e63a7f29b
commit cffdbff23c
94 changed files with 252 additions and 970 deletions

View file

@ -78,7 +78,7 @@ fun WelcomeWizard(
}
val useWideLayout = height < 500 && width > height
val stepBackgroundColor = Color(ContextCompat.getColor(ctx, R.color.setup_step_background))
val textColor = Color(ContextCompat.getColor(ctx, R.color.setup_step_action_text))
val textColor = Color(ContextCompat.getColor(ctx, R.color.setup_text_action))
val textColorDim = textColor.copy(alpha = 0.5f)
val appName = stringResource(ctx.applicationInfo.labelRes)
@Composable fun bigText() {

View file

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-only
package helium314.keyboard.settings.preferences
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import androidx.compose.material3.Text
@ -25,6 +26,7 @@ import java.io.FileInputStream
import java.io.FileOutputStream
import java.io.IOException
@SuppressLint("ApplySharedPref")
@Composable
fun LoadGestureLibPreference(setting: Setting) {
var showDialog by rememberSaveable { mutableStateOf(false) }
@ -78,6 +80,7 @@ fun LoadGestureLibPreference(setting: Setting) {
.setType("application/octet-stream")
launcher.launch(intent)
},
confirmButtonText = stringResource(R.string.load_gesture_library_button_load),
title = { Text(stringResource(R.string.load_gesture_library)) },
content = { Text(stringResource(R.string.load_gesture_library_message, abi)) },
neutralButtonText = if (libFile.exists()) stringResource(R.string.load_gesture_library_button_delete) else null,

View file

@ -143,7 +143,7 @@ fun ColorsScreen(
stringResource(R.string.main_colors) to { KeyboardTheme.writeUserMoreColors(prefs, newThemeName.text, 0) },
stringResource(R.string.more_colors) to { KeyboardTheme.writeUserMoreColors(prefs, newThemeName.text, 1) },
stringResource(R.string.all_colors) to { KeyboardTheme.writeUserMoreColors(prefs, newThemeName.text, 2) },
stringResource(R.string.save) to {
stringResource(R.string.button_save_file) to {
val intent = Intent(Intent.ACTION_CREATE_DOCUMENT)
.addCategory(Intent.CATEGORY_OPENABLE)
.putExtra(Intent.EXTRA_TITLE,"${newThemeName.text}.json")