Skip to content

Commit

Permalink
about phone: tweak some stuff
Browse files Browse the repository at this point in the history
Removed png and added vector drawable for ROM Logo

Changed padding of ROM Logo

Set the searchbar background to material_grey_900

Re-ordered

Fix Version details
  • Loading branch information
DrtSinX98 committed May 9, 2021
1 parent 9282913 commit a295a8e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
Binary file removed res/drawable/ic_rom_logo.png
Binary file not shown.
7 changes: 7 additions & 0 deletions res/drawable/ic_rom_logo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="39dp"
android:height="16dp"
android:viewportWidth="39.9"
android:viewportHeight="16.2">
<path android:fillColor="#ff167c80"
android:pathData="M36,8.2c-1.1,0,-2.2,0.5,-3,1.3l-0.2,-0.1C31.2,8.8,29.6,8.3,28,8l0,0c0,-4.4,-3.6,-8,-8,-8s-8,3.6,-8,8h-0.2c-1.6,0.3,-3.1,0.8,-4.6,1.4L7,9.5C5.5,7.8,3,7.7,1.3,9.2c-1.6,1.5,-1.8,4,-0.3,5.6s4,1.8,5.6,0.3c1.1,-1,1.5,-2.5,1.2,-3.9l0,0c1.4,-0.5,2.8,-1,4.3,-1.3c1,4.3,5.3,7,9.6,5.9c2.9,-0.7,5.2,-3,5.9,-5.9c1.5,0.3,2.9,0.7,4.3,1.3l0,0c-0.5,2.1,0.8,4.3,2.9,4.8c2.1,0.5,4.3,-0.8,4.8,-2.9S39,8.8,36.9,8.3C36.6,8.2,36.3,8.2,36,8.2zM4,14.2c-1.1,0,-2,-0.9,-2,-2s0.9,-2,2,-2s2,0.9,2,2S5.1,14.2,4,14.2zM20,14.2c-3.3,0,-6,-2.7,-6,-6s2.7,-6,6,-6s6,2.7,6,6S23.3,14.2,20,14.2zM36,14.2c-1.1,0,-2,-0.9,-2,-2s0.9,-2,2,-2s2,0.9,2,2S37.1,14.2,36,14.2zM23,8.2c0,1.7,-1.3,3,-3,3c-1.7,0,-3,-1.3,-3,-3s1.3,-3,3,-3C21.7,5.2,23,6.5,23,8.2z"/>
</vector>
2 changes: 1 addition & 1 deletion res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<color name="homepage_support_background">#3F5FBD</color>
<color name="homepage_card_dismissal_background">@*android:color/material_grey_900</color>
<color name="contextual_card_background">@*android:color/material_grey_900</color>
<color name="search_bar_background">@*android:color/material_grey_800</color>
<color name="search_bar_background">@*android:color/material_grey_900</color>
<!-- Dialog background color. -->
<color name="dialog_background">@*android:color/material_grey_800</color>
<color name="notification_importance_selection_bg">@*android:color/material_grey_800</color>
Expand Down
15 changes: 8 additions & 7 deletions res/xml/my_device_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@
<!-- Device name -->
<com.android.settings.widget.ValidatedEditTextPreference
android:key="device_name"
android:order="1"
android:order="54"
android:title="@string/my_device_info_device_name_preference_title"
android:summary="@string/summary_placeholder"
settings:controller="com.android.settings.deviceinfo.DeviceNamePreferenceController"
settings:enableCopying="true"/>
settings:enableCopying="true"
settings:isPreferenceVisible="false" />

<!-- Account name -->
<Preference
android:key="branded_account"
android:order="2"
android:order="4"
android:title="@string/my_device_info_account_preference_title"
android:summary="@string/summary_placeholder"
settings:controller="com.android.settings.deviceinfo.BrandedAccountPreferenceController"/>
Expand All @@ -50,7 +51,7 @@
android:key="phone_number"
android:order="3"
android:title="@string/status_number"
android:summary="@string/summary_placeholder"
android:summary="@string/summary_placeholder"
android:selectable="false"
settings:controller="com.android.settings.deviceinfo.PhoneNumberPreferenceController"
settings:enableCopying="true"/> -->
Expand Down Expand Up @@ -99,7 +100,7 @@
<!-- Model & hardware -->
<Preference
android:key="device_model"
android:order="31"
android:order="2"
android:title="@string/model_info"
android:summary="@string/summary_placeholder"
android:fragment="com.android.settings.deviceinfo.hardwareinfo.HardwareInfoFragment"
Expand All @@ -120,7 +121,7 @@
<!-- Android version -->
<Preference
android:key="firmware_version"
android:order="42"
android:order="1"
android:title="@string/firmware_version"
android:summary="@string/summary_placeholder"
android:fragment="com.android.settings.deviceinfo.firmwareversion.FirmwareVersionSettings"
Expand Down Expand Up @@ -206,7 +207,7 @@
<!-- SELinux status information -->
<Preference
android:key="selinux_status"
android:order="54"
android:order="3"
android:title="@string/selinux_status"
android:summary="@string/selinux_status_enforcing"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void init(Context context) {
LinearLayout linearLayout = new LinearLayout(context);
linearLayout.setOrientation(LinearLayout.VERTICAL);
ImageView rom_logo = new ImageView(context);
rom_logo.setPadding(72, 72, 72, 72);
rom_logo.setPadding(40, 40, 40, 40);
rom_logo.setAdjustViewBounds(true);
rom_logo.setImageTintList(ColorStateList.valueOf(Utils.getColorAttrDefaultColor(context, android.R.attr.colorAccent)));
linearLayout.setId(R.id.rom_logo_id);
Expand All @@ -48,8 +48,8 @@ public void init(Context context) {
rlparams.addRule(RelativeLayout.ABOVE, R.id.rom_logo_id);
rom_logo.setLayoutParams(rlparams);
setMinimumWidth(rom_logo.getWidth());
String DEBUG_VERSION_TOP="v5.0";
String DEBUG_VERSION_BOTTOM="DEBUG";
String DEBUG_VERSION_TOP="v11.69";
String DEBUG_VERSION_BOTTOM="ISOTOPE";
String version = SystemProperties.get("rom.modversion");
String releaseType = SystemProperties.get("ro.dot.releasetype");
TextView rom_title = new TextView(context);
Expand Down Expand Up @@ -83,4 +83,4 @@ public void init(Context context) {
layout.addView(rom_logo, rlparams);
layout.addView(linearLayout, lparamas);
}
}
}

0 comments on commit a295a8e

Please sign in to comment.