Skip to content

Commit

Permalink
Minus UI changes
Browse files Browse the repository at this point in the history
Signed-off-by: DHD2280 <[email protected]>
  • Loading branch information
DHD2280 committed Nov 13, 2024
1 parent 3f50ef4 commit 21d9bc9
Show file tree
Hide file tree
Showing 16 changed files with 172 additions and 160 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ dependencies {

// Oneplus UI
implementation(libs.oneplus.ui)

}

tasks.register("printVersionName") {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/custom_preference_illustration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
android:gravity="center"
android:clickable="false"
android:importantForAccessibility="noHideDescendants"
android:layout_margin="@dimen/preference_card_margin_horizontal"
android:layout_marginHorizontal="@dimen/preference_card_margin_horizontal"
android:layout_marginTop="@dimen/preference_card_margin_horizontal"
android:orientation="horizontal">

<FrameLayout
Expand Down
25 changes: 14 additions & 11 deletions app/src/main/res/xml/aod_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
android:key="sb_illustration"
app:lottie_rawRes="@raw/aod_illustration" />

<it.dhd.oneplusui.preference.OplusJumpPreference
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodClock"
android:key="aod_clock"
android:title="@string/aod_clock"
app:forcePosition="top"
app:iconSpaceReserved="false" />
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusJumpPreference
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodWeather"
android:key="aod_weather"
android:title="@string/aod_weather"
app:iconSpaceReserved="false" />
<it.dhd.oneplusui.preference.OplusJumpPreference
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodClock"
android:key="aod_clock"
android:title="@string/aod_clock"
app:iconSpaceReserved="false" />

<it.dhd.oneplusui.preference.OplusJumpPreference
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodWeather"
android:key="aod_weather"
android:title="@string/aod_weather"
app:iconSpaceReserved="false" />

</it.dhd.oneplusui.preference.OplusPreferenceCategory>

</PreferenceScreen>
16 changes: 8 additions & 8 deletions app/src/main/res/xml/aod_weather_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
app:forcePosition="full"
app:iconSpaceReserved="false" />

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusMenuPreference
android:defaultValue="2"
Expand Down Expand Up @@ -68,9 +68,9 @@
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory android:key="aod_weather_prefs">
<it.dhd.oneplusui.preference.OplusPreferenceCategory android:key="aod_weather_prefs">

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="true"
Expand Down Expand Up @@ -126,9 +126,9 @@
app:minVal="13"
app:valueFormat="dp" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory android:key="aod_weather_colors_prefs">
<it.dhd.oneplusui.preference.OplusPreferenceCategory android:key="aod_weather_colors_prefs">

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
Expand All @@ -145,7 +145,7 @@
android:title="@string/custom_color"
app:iconSpaceReserved="false" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusPreferenceCategory android:title="@string/weather_custom_location_title">

Expand All @@ -164,7 +164,7 @@

</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oxygencustomizer.ui.preferences.ListWithPopUpPreference
android:dependency="aod_weather_enabled"
Expand Down Expand Up @@ -208,6 +208,6 @@
app:minVal="0"
app:valueFormat="dp" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

</PreferenceScreen>
12 changes: 6 additions & 6 deletions app/src/main/res/xml/battery_bar_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
app:forcePosition="full"
app:iconSpaceReserved="false" />

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
Expand Down Expand Up @@ -52,9 +52,9 @@
android:summaryOn="@string/general_on"
android:title="@string/BB_center_align_title"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
Expand Down Expand Up @@ -113,9 +113,9 @@
android:key="batteryPowerSaveColor"
android:title="@string/BB_batteryPowerSaveColor"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSliderPreference
android:key="batteryWarningRange"
Expand Down Expand Up @@ -149,6 +149,6 @@
android:title="@string/BB_batteryWarningColor"
app:iconSpaceReserved="false" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

</PreferenceScreen>
4 changes: 3 additions & 1 deletion app/src/main/res/xml/colors_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
app:lottie_cacheComposition="false"
app:lottie_rawRes="@raw/themes_illustration" />

<it.dhd.oneplusui.preference.OplusPreferenceCategory/>

<it.dhd.oxygencustomizer.ui.preferences.OplusColorPreference
android:key="primary_color"
android:title="@string/primary_color"
app:cpv_showAlphaSlider="true"
app:forcePosition="full" />

<PreferenceCategory/>
<it.dhd.oneplusui.preference.OplusPreferenceCategory/>

<it.dhd.oneplusui.preference.OplusPreference
android:key="apply_colors"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/gesture_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
app:iconSpaceReserved="false" />
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
Expand Down Expand Up @@ -79,7 +79,7 @@
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusPreferenceCategory
android:key="nav_pill_cat"
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/res/xml/lockscreen_weather_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
app:forcePosition="full"
app:iconSpaceReserved="false" />

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusMenuPreference
android:defaultValue="2"
Expand Down Expand Up @@ -83,9 +83,9 @@
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory android:key="lockscreen_weather_prefs">
<it.dhd.oneplusui.preference.OplusPreferenceCategory android:key="lockscreen_weather_prefs">

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="true"
Expand Down Expand Up @@ -141,9 +141,9 @@
app:minVal="13"
app:valueFormat="dp" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory android:key="lockscreen_weather_colors_prefs">
<it.dhd.oneplusui.preference.OplusPreferenceCategory android:key="lockscreen_weather_colors_prefs">
<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
android:key="weather_custom_color_switch"
Expand All @@ -158,7 +158,7 @@
android:key="weather_custom_color"
android:title="@string/custom_color"
app:iconSpaceReserved="false" />
</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusPreferenceCategory android:title="@string/weather_custom_location_title">

Expand All @@ -177,7 +177,7 @@

</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oxygencustomizer.ui.preferences.ListWithPopUpPreference
android:dependency="lockscreen_weather_enabled"
Expand Down Expand Up @@ -230,6 +230,6 @@
app:iconSpaceReserved="false"
app:useSimpleSummaryProvider="true" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

</PreferenceScreen>
8 changes: 4 additions & 4 deletions app/src/main/res/xml/memc_overview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusPreference
android:key="memc_feature_on"
Expand Down Expand Up @@ -34,9 +34,9 @@
android:title="@string/memc_mode"
app:iconSpaceReserved="false" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<PreferenceCategory>
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
Expand All @@ -58,7 +58,7 @@
android:summary="@string/custom_memc_configuration_summary"
app:iconSpaceReserved="false" />

</PreferenceCategory>
</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oxygencustomizer.ui.preferences.FooterPreference
android:key="footer"
Expand Down
37 changes: 20 additions & 17 deletions app/src/main/res/xml/misc_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@
android:key="sb_illustration"
app:lottie_rawRes="@raw/misc_illustration" />

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
android:key="misc_remove_rotate_floating"
android:summaryOff="@string/general_off"
android:summaryOn="@string/general_on"
android:title="@string/misc_remove_rotate_floating_title"
app:forcePosition="top"
app:iconSpaceReserved="false" />

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
android:key="remove_usb_dialog"
android:summary="@string/remove_usb_dialog_summary"
android:title="@string/remove_usb_dialog"
app:forcePosition="bottom"
app:iconSpaceReserved="false" />
<it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
android:key="misc_remove_rotate_floating"
android:summaryOff="@string/general_off"
android:summaryOn="@string/general_on"
android:title="@string/misc_remove_rotate_floating_title"
app:forcePosition="top"
app:iconSpaceReserved="false" />

<it.dhd.oneplusui.preference.OplusSwitchPreference
android:defaultValue="false"
android:key="remove_usb_dialog"
android:summary="@string/remove_usb_dialog_summary"
android:title="@string/remove_usb_dialog"
app:forcePosition="bottom"
app:iconSpaceReserved="false" />

</it.dhd.oneplusui.preference.OplusPreferenceCategory>

<it.dhd.oneplusui.preference.OplusPreferenceCategory
android:title="@string/misc_power_menu"
Expand Down Expand Up @@ -126,9 +129,9 @@
app:iconSpaceReserved="false">

<it.dhd.oneplusui.preference.OplusJumpPreference
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.misc.MemcFragment"
android:key="memc_prefs"
android:title="@string/memc_page_title"
android:fragment="it.dhd.oxygencustomizer.ui.fragments.mods.misc.MemcFragment"
app:iconSpaceReserved="false" />

</it.dhd.oneplusui.preference.OplusPreferenceCategory>
Expand Down
Loading

0 comments on commit 21d9bc9

Please sign in to comment.