diff options
| author | George Zacharia <george.zcharia@gmail.com> | 2021-09-14 20:32:04 +0530 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2021-09-15 14:33:22 +0300 |
| commit | 927305e74ae78dae5315d085dea9d77e72f3a607 (patch) | |
| tree | 772e748ef39cc30196506c28eaeeb1a76f4efece | |
| parent | a3bc5e59c6ce6c740de10f5d4862189fb4668a26 (diff) | |
overlays: VolumePlugins: Fix icon display on app volume row
Pad app icons horizontally to keep them within the slider
Keep the app icon vertically aligned with the other icons
Avoid tinting the app icon
Change-Id: Ica4e9cb2e2c0f61d3f5678a5226a008d1d14ac70
| -rw-r--r-- | MiuiCompactPanel/res/layout/volume_dialog_miui_row.xml | 4 | ||||
| -rw-r--r-- | P404Panel/res/layout/volume_dialog_p404_row.xml | 6 | ||||
| -rw-r--r-- | ShapeShiftPanel/res/layout/volume_dialog_ssos_row.xml | 2 | ||||
| -rw-r--r-- | ShapeShiftPanel/res/values/strings.xml | 2 | ||||
| -rw-r--r-- | VolumePluginCommon/res/values/dimens.xml | 2 |
5 files changed, 10 insertions, 6 deletions
diff --git a/MiuiCompactPanel/res/layout/volume_dialog_miui_row.xml b/MiuiCompactPanel/res/layout/volume_dialog_miui_row.xml index e1f16b3..d889fcf 100644 --- a/MiuiCompactPanel/res/layout/volume_dialog_miui_row.xml +++ b/MiuiCompactPanel/res/layout/volume_dialog_miui_row.xml @@ -79,7 +79,9 @@ android:layout_width="@dimen/volume_dialog_miui_tap_target_size" android:layout_height="@dimen/volume_dialog_miui_tap_target_size" android:background="@drawable/ripple_drawable_20dp" - android:layout_marginTop="@dimen/volume_dialog_miui_row_icon_margintop" + android:layout_marginTop="-51dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:soundEffectsEnabled="false" android:scaleType="centerInside" /> </LinearLayout> diff --git a/P404Panel/res/layout/volume_dialog_p404_row.xml b/P404Panel/res/layout/volume_dialog_p404_row.xml index e94893d..232c030 100644 --- a/P404Panel/res/layout/volume_dialog_p404_row.xml +++ b/P404Panel/res/layout/volume_dialog_p404_row.xml @@ -73,10 +73,10 @@ android:layout_width="48dp" android:layout_height="48dp" android:background="@drawable/ripple_drawable_20dp" - android:padding="@dimen/volume_row_app_icon_padding" - android:layout_marginTop="@dimen/volume_dialog_row_icon_margintop" + android:layout_marginTop="-48dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:clickable="false" - android:tint="@android:color/white" android:soundEffectsEnabled="false" android:scaleType="centerInside" /> </LinearLayout> diff --git a/ShapeShiftPanel/res/layout/volume_dialog_ssos_row.xml b/ShapeShiftPanel/res/layout/volume_dialog_ssos_row.xml index 407fcad..8159486 100644 --- a/ShapeShiftPanel/res/layout/volume_dialog_ssos_row.xml +++ b/ShapeShiftPanel/res/layout/volume_dialog_ssos_row.xml @@ -86,6 +86,8 @@ android:layout_height="@dimen/volume_dialog_miui_tap_target_size" android:background="@drawable/ripple_drawable_20dp" android:layout_marginTop="@dimen/volume_dialog_miui_row_icon_margintop" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:soundEffectsEnabled="false" android:scaleType="centerInside" /> </LinearLayout> diff --git a/ShapeShiftPanel/res/values/strings.xml b/ShapeShiftPanel/res/values/strings.xml index a7a2ba6..2451f58 100644 --- a/ShapeShiftPanel/res/values/strings.xml +++ b/ShapeShiftPanel/res/values/strings.xml @@ -12,5 +12,5 @@ limitations under the License. --> <resources> - <string name="plugin_label">MIUI Compact</string> + <string name="plugin_label">ShapeShiftOS</string> </resources> diff --git a/VolumePluginCommon/res/values/dimens.xml b/VolumePluginCommon/res/values/dimens.xml index 938e58f..64bec40 100644 --- a/VolumePluginCommon/res/values/dimens.xml +++ b/VolumePluginCommon/res/values/dimens.xml @@ -58,7 +58,7 @@ <dimen name="volume_dialog_miui_settings_icon_size">16dp</dimen> <dimen name="custom_volume_dialog_miui_seekbar_width">40dip</dimen> <dimen name="custom_volume_dialog_miui_seekbar_height">220dip</dimen> - <dimen name="volume_dialog_miui_row_icon_margintop">-54dp</dimen> + <dimen name="volume_dialog_miui_row_icon_margintop">-51dp</dimen> <dimen name="volume_dialog_miui_rows_padding_right">0.5dip</dimen> <dimen name="volume_dialog_miui_ringer_spacing">4dip</dimen> <dimen name="volume_dialog_miui_ringer_height">38dip</dimen> |
