File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
java/com/geode/launcher/preferences Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,10 @@ import com.geode.launcher.updater.ReleaseViewModel
51
51
import com.geode.launcher.ui.theme.GeodeLauncherTheme
52
52
import com.geode.launcher.ui.theme.LocalTheme
53
53
import com.geode.launcher.ui.theme.Theme
54
+ import com.geode.launcher.utils.ApplicationIcon
54
55
import com.geode.launcher.utils.Constants
55
56
import com.geode.launcher.utils.GamePackageUtils
57
+ import com.geode.launcher.utils.IconUtils
56
58
import com.geode.launcher.utils.LaunchUtils
57
59
import com.geode.launcher.utils.PreferenceUtils
58
60
import java.net.ConnectException
@@ -327,12 +329,21 @@ fun SettingsScreen(
327
329
}
328
330
329
331
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
332
+ val currentIcon by PreferenceUtils .useStringPreference(PreferenceUtils .Key .SELECTED_ICON )
333
+ val iconName = remember(currentIcon) {
334
+ IconUtils .getIconDetails(
335
+ ApplicationIcon .fromId(currentIcon ? : " default" )
336
+ ).nameId
337
+ }
338
+
330
339
OptionsButton (
331
340
title = stringResource(R .string.preference_set_application_icon),
332
341
onClick = {
333
342
val launchIntent = Intent (context, ApplicationIconActivity ::class .java)
334
343
context.startActivity(launchIntent)
335
- }
344
+ },
345
+ description = stringResource(iconName),
346
+ displayInline = true ,
336
347
)
337
348
}
338
349
Original file line number Diff line number Diff line change 138
138
<string name =" preference_theme_dark" >Dark</string >
139
139
<string name =" preference_black_background_name" >Black background in dark theme</string >
140
140
<string name =" preference_disable_styles" >Disable custom styling</string >
141
- <string name =" preference_set_application_icon" >Change application icon</string >
141
+ <string name =" preference_set_application_icon" >Application icon</string >
142
142
<string name =" preference_force_hrr" >Force maximum refresh rate</string >
143
143
<string name =" preference_enable_redesign" >✨ Enable UI refresh</string >
144
144
You can’t perform that action at this time.
0 commit comments