Skip to content

Commit

Permalink
Move space settings into own screen
Browse files Browse the repository at this point in the history
Change-Id: I79dc173ca2b99aa0f1e60e5523f0e9d16ae467dd
  • Loading branch information
SpiritCroc committed Jan 6, 2025
1 parent 0e220a4 commit 1646a87
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions schildi/lib/src/main/kotlin/chat/schildi/lib/preferences/ScPrefs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,26 +153,26 @@ object ScPrefs {
PIN_FAVORITES,
BURY_LOW_PRIORITY,
)),
ScPrefCategory(R.string.sc_pref_category_spaces, null, listOf(
SPACE_NAV,
SPACE_UNREAD_COUNTS,
SPACE_SWIPE,
COMPACT_ROOT_SPACES,
ScPrefScreen(R.string.sc_pseudo_spaces_title, R.string.sc_pseudo_spaces_summary_experimental, listOf(
ScPrefCategory(R.string.sc_pseudo_spaces_title, null, listOf(
PSEUDO_SPACE_FAVORITES,
PSEUDO_SPACE_DMS,
PSEUDO_SPACE_GROUPS,
PSEUDO_SPACE_SPACELESS_GROUPS,
PSEUDO_SPACE_SPACELESS,
PSEUDO_SPACE_NOTIFICATIONS,
PSEUDO_SPACE_UNREAD,
)),
ScPrefCategory(R.string.sc_pref_category_general_behaviour, null, listOf(
PSEUDO_SPACE_HIDE_EMPTY_UNREAD,
)),
), dependencies = SPACE_NAV.asDependencies())
)),
)),
ScPrefScreen(R.string.sc_pref_category_spaces, null, listOf(
SPACE_NAV,
SPACE_UNREAD_COUNTS,
SPACE_SWIPE,
COMPACT_ROOT_SPACES,
ScPrefScreen(R.string.sc_pseudo_spaces_title, R.string.sc_pseudo_spaces_summary_experimental, listOf(
ScPrefCategory(R.string.sc_pseudo_spaces_title, null, listOf(
PSEUDO_SPACE_FAVORITES,
PSEUDO_SPACE_DMS,
PSEUDO_SPACE_GROUPS,
PSEUDO_SPACE_SPACELESS_GROUPS,
PSEUDO_SPACE_SPACELESS,
PSEUDO_SPACE_NOTIFICATIONS,
PSEUDO_SPACE_UNREAD,
)),
ScPrefCategory(R.string.sc_pref_category_general_behaviour, null, listOf(
PSEUDO_SPACE_HIDE_EMPTY_UNREAD,
)),
), dependencies = SPACE_NAV.asDependencies())
)),
ScPrefScreen(R.string.sc_pref_category_timeline, null, listOf(
SC_TIMELINE_LAYOUT,
Expand Down Expand Up @@ -230,7 +230,6 @@ object ScPrefs {
)

val devQuickTweaksOverview = listOf(
CLIENT_GENERATED_UNREAD_COUNTS,
ELEMENT_ROOM_LIST_FILTERS, // Used to be: ScUpstreamFeatureFlagAliasPref(FeatureFlags.RoomListFilters, R.string.sc_upstream_feature_flag_room_list_filters),
SNC_FAB.copy(titleRes = R.string.sc_pref_snc_fab_title_short),
RENDER_SILENT_UNREAD,
Expand All @@ -246,8 +245,7 @@ object ScPrefs {
EL_TYPOGRAPHY,
COMPACT_APP_BAR,
)),
ScPrefCategory(R.string.sc_pref_category_misc, null, listOf(
DUAL_MENTION_UNREAD_COUNTS.copy(titleRes = R.string.sc_pref_dual_mention_unread_counts_title_short),
ScPrefCategory(R.string.sc_pref_category_spaces, null, listOf(
SPACE_NAV,
COMPACT_ROOT_SPACES,
ScPrefCategory(R.string.sc_pseudo_spaces_title, null, listOf(
Expand All @@ -260,6 +258,10 @@ object ScPrefs {
PSEUDO_SPACE_UNREAD,
PSEUDO_SPACE_HIDE_EMPTY_UNREAD,
), dependencies = SPACE_NAV.asDependencies()),
)),
ScPrefCategory(R.string.sc_pref_category_misc, null, listOf(
DUAL_MENTION_UNREAD_COUNTS.copy(titleRes = R.string.sc_pref_dual_mention_unread_counts_title_short),
CLIENT_GENERATED_UNREAD_COUNTS,
SYNC_READ_RECEIPT_AND_MARKER.copy(titleRes = R.string.sc_sync_read_receipt_and_marker_title_short),
MARK_READ_REQUIRES_SEEN_UNREAD_LINE.copy(titleRes = R.string.sc_pref_mark_read_requires_seen_unread_line_title_short),
)),
Expand Down

0 comments on commit 1646a87

Please sign in to comment.