Loading bliss/src/foundation/e/bliss/multimode/MultiModeController.kt +6 −0 Original line number Diff line number Diff line Loading @@ -108,5 +108,11 @@ class MultiModeController(val context: Context, val monitor: LauncherAppMonitor) resources!!.getBoolean(R.bool.default_single_mode) ) } @JvmStatic val isNotifCountEnabled: Boolean get() { return sharedPreferences!!.getBoolean(BlissPrefs.PREF_NOTIF_COUNT, true) } } } bliss/src/foundation/e/bliss/preferences/BlissPrefs.kt +1 −0 Original line number Diff line number Diff line Loading @@ -19,4 +19,5 @@ package foundation.e.bliss.preferences object BlissPrefs { const val PREF_SINGLE_LAYER_MODE = "pref_single_layer" const val PREF_NOTIF_COUNT = "pref_notif_count" } bliss/src/foundation/e/bliss/utils/BlissConstants.kt +15 −5 Original line number Diff line number Diff line /* * Copyright © MURENA SAS 2023. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * Copyright (C) 2025 MURENA SAS * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * */ package foundation.e.bliss.utils Loading res/values/colors.xml +2 −0 Original line number Diff line number Diff line Loading @@ -245,4 +245,6 @@ <color name="system_tertiary_fixed_dim">#E0BBDD</color> <color name="system_on_tertiary_fixed">#2A122C</color> <color name="system_on_tertiary_fixed_variant">#593D59</color> <color name="notification_dot_bg">#44B04C</color> </resources> res/xml/launcher_preferences.xml +5 −0 Original line number Diff line number Diff line Loading @@ -109,4 +109,9 @@ android:persistent="true" android:title="Enable single layer mode" /> <SwitchPreferenceCompat android:defaultValue="true" android:key="pref_notif_count" android:persistent="true" android:title="Show notification count" /> </androidx.preference.PreferenceScreen> Loading
bliss/src/foundation/e/bliss/multimode/MultiModeController.kt +6 −0 Original line number Diff line number Diff line Loading @@ -108,5 +108,11 @@ class MultiModeController(val context: Context, val monitor: LauncherAppMonitor) resources!!.getBoolean(R.bool.default_single_mode) ) } @JvmStatic val isNotifCountEnabled: Boolean get() { return sharedPreferences!!.getBoolean(BlissPrefs.PREF_NOTIF_COUNT, true) } } }
bliss/src/foundation/e/bliss/preferences/BlissPrefs.kt +1 −0 Original line number Diff line number Diff line Loading @@ -19,4 +19,5 @@ package foundation.e.bliss.preferences object BlissPrefs { const val PREF_SINGLE_LAYER_MODE = "pref_single_layer" const val PREF_NOTIF_COUNT = "pref_notif_count" }
bliss/src/foundation/e/bliss/utils/BlissConstants.kt +15 −5 Original line number Diff line number Diff line /* * Copyright © MURENA SAS 2023. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * Copyright (C) 2025 MURENA SAS * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * */ package foundation.e.bliss.utils Loading
res/values/colors.xml +2 −0 Original line number Diff line number Diff line Loading @@ -245,4 +245,6 @@ <color name="system_tertiary_fixed_dim">#E0BBDD</color> <color name="system_on_tertiary_fixed">#2A122C</color> <color name="system_on_tertiary_fixed_variant">#593D59</color> <color name="notification_dot_bg">#44B04C</color> </resources>
res/xml/launcher_preferences.xml +5 −0 Original line number Diff line number Diff line Loading @@ -109,4 +109,9 @@ android:persistent="true" android:title="Enable single layer mode" /> <SwitchPreferenceCompat android:defaultValue="true" android:key="pref_notif_count" android:persistent="true" android:title="Show notification count" /> </androidx.preference.PreferenceScreen>