Some exteraGram Preferences improvements
This commit is contained in:
14
TMessagesProj/src/debug/res/drawable/ic_logo_foreground.xml
Normal file
14
TMessagesProj/src/debug/res/drawable/ic_logo_foreground.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="108dp"
|
||||
android:width="108dp"
|
||||
android:viewportWidth="108.0"
|
||||
android:viewportHeight="108.0">
|
||||
<path
|
||||
android:fillColor="@color/ic_background_beta"
|
||||
android:pathData="M54,54m-54,0a54,54 0,1 1,108 0a54,54 0,1 1,-108 0" />
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M70.803,32.191C75.023,30.798 77.525,33.057 76.183,37.293C72.812,47.94 66.196,67.363 61.988,79.627C60.888,82.832 55.788,82.707 54.509,79.569C52.314,74.184 49.08,67.918 44.669,63.35C40.45,58.982 34.543,55.824 29.297,53.666C26.103,52.352 25.991,46.982 29.271,45.9L70.803,32.191Z"
|
||||
android:fillAlpha="0.7" />
|
||||
</vector>
|
||||
@@ -49,7 +49,6 @@ public class ChatsPreferencesEntry extends BaseFragment {
|
||||
|
||||
private int stickerSizeHeaderRow;
|
||||
private int stickerSizeRow;
|
||||
private int stickerSizeDividerRow;
|
||||
|
||||
private int stickersHeaderRow;
|
||||
private int hideStickerTimeRow;
|
||||
@@ -324,7 +323,6 @@ public class ChatsPreferencesEntry extends BaseFragment {
|
||||
|
||||
stickerSizeHeaderRow = rowCount++;
|
||||
stickerSizeRow = rowCount++;
|
||||
stickerSizeDividerRow = rowCount++;
|
||||
|
||||
stickersHeaderRow = rowCount++;
|
||||
hideStickerTimeRow = rowCount++;
|
||||
@@ -468,7 +466,7 @@ public class ChatsPreferencesEntry extends BaseFragment {
|
||||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
if (position == stickerSizeDividerRow || position == stickersDividerRow || position == chatDividerRow || position == mediaDividerRow) {
|
||||
if (position == stickersDividerRow || position == chatDividerRow || position == mediaDividerRow) {
|
||||
return 1;
|
||||
} else if (position == stickerSizeHeaderRow || position == stickersHeaderRow || position == chatHeaderRow || position == mediaHeaderRow) {
|
||||
return 2;
|
||||
|
||||
@@ -54,9 +54,7 @@ public class InfoSettingsCell extends FrameLayout {
|
||||
|
||||
imageView = new ImageView(context);
|
||||
imageView.setScaleType(ImageView.ScaleType.CENTER);
|
||||
imageView.setColorFilter(new PorterDuffColorFilter(Theme.getColor(Theme.key_windowBackgroundWhiteBlackText), PorterDuff.Mode.MULTIPLY));
|
||||
addView(imageView, LayoutHelper.createFrame(108, 108, Gravity.CENTER | Gravity.TOP, 0, 20, 0, 0));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -5,11 +5,10 @@
|
||||
android:viewportWidth="108.0"
|
||||
android:viewportHeight="108.0">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M54,54m-54,0a54,54 0,1 1,108 0a54,54 0,1 1,-108 0"
|
||||
android:fillAlpha="0.1" />
|
||||
android:fillColor="@color/ic_background"
|
||||
android:pathData="M54,54m-54,0a54,54 0,1 1,108 0a54,54 0,1 1,-108 0" />
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M70.803,32.191C75.023,30.798 77.525,33.057 76.183,37.293C72.812,47.94 66.196,67.363 61.988,79.627C60.888,82.832 55.788,82.707 54.509,79.569C52.314,74.184 49.08,67.918 44.669,63.35C40.45,58.982 34.543,55.824 29.297,53.666C26.103,52.352 25.991,46.982 29.271,45.9L70.803,32.191Z"
|
||||
android:fillAlpha="0.4" />
|
||||
android:fillAlpha="0.7" />
|
||||
</vector>
|
||||
|
||||
Reference in New Issue
Block a user