mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 16:39:35 +00:00
remove some unused resource strings, and mark others for possible future removal
This commit is contained in:
parent
5e63a7f29b
commit
cffdbff23c
94 changed files with 252 additions and 970 deletions
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue