Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 0fc1111

Browse files
authored
app: minor fixes (#92)
Signed-off-by: BlackMesa123 <giangrecosalvo9@gmail.com>
1 parent 387a1bd commit 0fc1111

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/sesl/colorpicker/detailed/SeslColorPicker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ private void updateHexData() {
608608
int color = ((red & 255) << 16) | ((mOpacitySeekBar.getProgress() & 255) << 24) | ((green & 255) << 8) | (blue & 255);
609609
String colorStr = String.format("%08x", color);
610610

611-
mColorPickerHexEditText.setText("" + colorStr.substring(2, colorStr.length()));
611+
mColorPickerHexEditText.setText("" + colorStr.substring(2, colorStr.length()).toUpperCase());
612612
mColorPickerHexEditText.setSelection(mColorPickerHexEditText.getText().length());
613613
if (!mfromSaturationSeekbar && !mfromSpectrumTouch) {
614614
mapColorOnColorWheel(color);
@@ -623,7 +623,7 @@ private void updateHexAndRGBValues(int i) {
623623
if (i != 0) {
624624
String format = String.format("%08x", i);
625625
String substring = format.substring(2, format.length());
626-
mColorPickerHexEditText.setText("" + substring);
626+
mColorPickerHexEditText.setText("" + substring.toUpperCase());
627627
mColorPickerHexEditText.setSelection(mColorPickerHexEditText.getText().length());
628628

629629
int color = Color.parseColor("#" + substring);

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/sesl/recyclerview/SeslRecyclerViewFastScroller.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class SeslRecyclerViewFastScroller {
133133
private float mThreshold = 0.0f;
134134
private float mLastDraggingY = 0.0f;
135135
private boolean mScrollCompleted = true;
136-
private int mState = STATE_NONE;
136+
private int mState = STATE_VISIBLE;
137137

138138
private static Property<View, Integer> LEFT = new IntProperty<View>("left") {
139139
@Override
@@ -624,7 +624,7 @@ public void setImmersiveBottomPadding(int bottom) {
624624
}
625625

626626
private void layoutThumb() {
627-
final Rect bounds = this.mTempBounds;
627+
final Rect bounds = mTempBounds;
628628
measureViewToSide(mThumbImage, null, null, bounds);
629629
applyLayout(mThumbImage, bounds);
630630
}
@@ -636,7 +636,7 @@ private void layoutTrack() {
636636
final int maxWidth = Math.max(0, container.width());
637637
final int maxHeight = Math.max(0, container.height());
638638
final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST);
639-
final int heightMeasureSpec = makeSafeMeasureSpec(maxHeight, MeasureSpec.UNSPECIFIED);
639+
final int heightMeasureSpec = makeSafeMeasureSpec(MeasureSpec.getSize(maxHeight), MeasureSpec.UNSPECIFIED);
640640
track.measure(widthMeasureSpec, heightMeasureSpec);
641641

642642
int top;

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/view/RecyclerView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8624,7 +8624,7 @@ public void seslSetFastScrollerEnabled(boolean enabled) {
86248624
if (mFastScroller != null) {
86258625
mFastScroller.setEnabled(enabled);
86268626
} else if (enabled) {
8627-
mFastScroller = new SeslRecyclerViewFastScroller(this);;
8627+
mFastScroller = new SeslRecyclerViewFastScroller(this);
86288628
mFastScroller.setEnabled(true);
86298629
mFastScroller.setScrollbarPosition(getVerticalScrollbarPosition());
86308630
}

yanndroid/oneui/src/main/res/drawable/oui_tip_popup_btn_default_shape.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<inset android:insetLeft="@dimen/oui_tip_popup_button_inset_horizontal" android:insetRight="@dimen/oui_tip_popup_button_inset_horizontal" android:insetTop="@dimen/oui_tip_popup_button_inset_vertical" android:insetBottom="@dimen/oui_tip_popup_button_inset_vertical"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44
<shape android:tint="?colorButtonNormal" android:shape="rectangle">
5-
<corners android:radius="2.0dip" />
5+
<corners android:radius="@dimen/sesl_button_corner_radius" />
66
<solid android:color="@android:color/white" />
77
<padding android:left="@dimen/oui_tip_popup_button_padding_horizontal" android:top="@dimen/oui_tip_popup_button_padding_vertical" android:right="@dimen/oui_tip_popup_button_padding_horizontal" android:bottom="@dimen/oui_tip_popup_button_padding_vertical" />
88
</shape>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<shape android:shape="line"
33
xmlns:android="http://schemas.android.com/apk/res/android">
4-
<stroke android:width="1.5dip" android:dashWidth="1.5dip" android:dashGap="3.0dip" android:color="@color/sesl_color_picker_used_color_text_color" />
4+
<stroke android:width="1.5dip" android:dashWidth="1.5dip" android:dashGap="3.0dip" android:color="@color/sesl_color_picker_divider" />
55
</shape>
0 Bytes
Loading

yanndroid/oneui/src/main/res/layout/sesl_color_picker_oneui_3_selected_color_layout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<TextView
1515
android:id="@+id/sesl_color_hex_text" android:layout_width="wrap_content" android:layout_height="@dimen/sesl_color_picker_selected_color_title_text_height" android:gravity="center" android:text="@string/sesl_color_hex_text" style="@style/HexRGBTitleText" />
1616
<EditText
17-
android:id="@+id/sesl_color_hex_edit_text" android:layout_width="wrap_content" android:layout_height="@dimen/sesl_color_picker_selected_color_value_text_height" android:minWidth="50.0dip" android:gravity="center" android:background="@null" android:singleLine="true" android:maxLength="6" android:digits="ABCDEFabcdef0123456789" android:privateImeOptions="disableSticker=true;disableGifKeyboard=true;disableEmoticonInput=true;disableDirectWriting=true;" android:selectAllOnFocus="true" style="@style/SeekbarProgressText" />
17+
android:id="@+id/sesl_color_hex_edit_text" android:layout_width="wrap_content" android:layout_height="@dimen/sesl_color_picker_selected_color_value_text_height" android:minWidth="50.0dip" android:gravity="center" android:background="@null" android:singleLine="true" android:maxLength="6" android:digits="ABCDEFabcdef0123456789" android:inputType="textCapCharacters|textFilter" android:privateImeOptions="disableSticker=true;disableGifKeyboard=true;disableEmoticonInput=true;disableDirectWriting=true;" android:selectAllOnFocus="true" style="@style/SeekbarProgressText" />
1818
</LinearLayout>
1919

2020
<LinearLayout

yanndroid/oneui/src/main/res/values-night/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797

9898

9999
<!--ColorPicker-->
100+
<color name="sesl_color_picker_divider">#42fafafa</color>
100101
<color name="sesl_color_picker_selected_color_item_text_color">#ffb0b0b0</color>
101102
<color name="sesl_color_picker_stroke_color">#ff000000</color>
102103
<color name="sesl_color_picker_tab_selected_background">#1affffff</color>

yanndroid/oneui/src/main/res/values/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162

163163

164164
<!--ColorPicker-->
165+
<color name="sesl_color_picker_divider">#ff979797</color>
165166
<color name="sesl_color_picker_cursor_stroke_color">#ffffffff</color>
166167
<color name="sesl_color_picker_percent_text_color">@color/sesl_color_picker_tab_selected</color>
167168
<color name="sesl_color_picker_seekbar_cursor_background_color">#fffafafa</color>

0 commit comments

Comments
 (0)