Commit Graph

760 Commits

Author SHA1 Message Date
ezio84
bbd8f269b5 New fresh look for CustomSeekbar
Oreo prefs style

thanks @Mazda-- for suggestion on how to remove the top divider

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:42:00 +07:00
Alex Cruz
c665521d8c Replace colorpicker action set png with vector
Change-Id: Ie44e1e91234706bb80f1ac56c72a68e1fe8eff07

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:41:48 +07:00
ezio84
86eb4dba0a margaritov color picker: add a proper landscape layout
preview:
https://s30.postimg.org/dvr6fyza9/Screenshot_20170104_155921.png

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:41:37 +07:00
Randall Rushing
635b911717 ColorPickerPreference: Introduce set default button when attribute is set
Set a default value using the "defaultColorValue" settings namespace
attribute. The general idea is often we want set a value of say "-1"
and let framework handle it. One such scenario would be if you are
changing the color of a ImageView using ColorFilter. When framework
receives a "-1" value, framework sets the ImageView ColorFilter to null,
restoring the ImageView to original state.

Screenshot:

https://teameos.slack.com/files/bigrushdog/F09T5S155/screenshot_2015-08-31-04-02-54.png

Change-Id: I4ad63576270de344a9e7430d9e63a248d37afd9f

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:41:27 +07:00
Lars Greiss
0c156f71ba Added modded marginov color picker
-- Adapt for Preference being part of support library

Change-Id: Ic721fdc7f63607d972d203e1a13097e8870bce2f
2019-10-03 19:40:34 +07:00
ezio84
64483f2bd5 CustomSeekBar: fix progressbar glitch with custom min-max values
when CustomSeekBar is called, it does:
mSeekBar.setMax(mMax - mMin);
assuming mMin=0 and mMax=100 if they are not set with settings:min or max
through the related menu xml.
So if we set one of those values in the related menu java class with the
available public voids (setMax(value) and setMin(value)) the seekbar doesn't
get the new min and max thus the user can't slide it to the max position.

To reply:
- set settings:max (or android:max according to your customseekbar implementation)
to the wanted value, e.g. 255;
- set the min value through your menu java class with CustomSeekBarPreference.setMin(value);
- try to move the progressbar thumb to the max position, it won't reach it.

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:40:14 +07:00
dwitherell
005717276e Fix seekbar attribute grabbing *also remove from attrs as we have always used android: for max
Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 19:39:55 +07:00
d34d
88870041dc Add CustomSeekBarPreference
Change-Id: I374ceb023a418f72778539d1c227ee987b3978a1

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 12:28:43 +07:00
Danny Baumann
dd31238803 Add back a helper pref that holds a system setting.
nitrogen edits : update for O and remove never used checkbox prefs

Signed-off-by: xyyx <xyyx@mail.ru>
2019-10-03 12:26:24 +07:00
hungphan2001
7d9b211eb1 Init Cherih 2019-10-03 12:21:20 +07:00