Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit 2e180ca

Browse files
committed
set all colorpreference attributes
1 parent 1e79745 commit 2e180ca

File tree

1 file changed

+103
-8
lines changed

1 file changed

+103
-8
lines changed

src/main/res/xml/root_preferences.xml

Lines changed: 103 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,56 +113,151 @@
113113
android:key="@string/APP_PREF_TRACK_COLOR_1"
114114
android:summary="@string/track_color_1_summary"
115115
android:title="@string/track_color_1_title"
116-
app:indicatorColorPreview="true" />
116+
app:indicatorColorPreview="true"
117+
app:barsLength="@dimen/defaultBarLength"
118+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
119+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
120+
app:barsThickness="@dimen/defaultBarThickness"
121+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
122+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
123+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
124+
app:huePointerRadius="@dimen/defaultPointerRadius"
125+
app:hueWheelRadius="@dimen/defaultWheelRadius"
126+
app:hueWheelThickness="@dimen/defaultWheelThickness"
127+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
128+
117129
<com.github.koston.preference.ColorPreference
118130
style="@style/AppTheme.PreferenceDialog"
119131
android:defaultValue="@color/track_color_2_default"
120132
android:key="@string/APP_PREF_TRACK_COLOR_2"
121133
android:summary="@string/track_color_2_summary"
122134
android:title="@string/track_color_2_title"
123-
app:indicatorColorPreview="true" />
135+
app:barsLength="@dimen/defaultBarLength"
136+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
137+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
138+
app:barsThickness="@dimen/defaultBarThickness"
139+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
140+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
141+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
142+
app:huePointerRadius="@dimen/defaultPointerRadius"
143+
app:hueWheelRadius="@dimen/defaultWheelRadius"
144+
app:hueWheelThickness="@dimen/defaultWheelThickness"
145+
app:indicatorColorPreview="true"
146+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
147+
124148
<com.github.koston.preference.ColorPreference
125149
style="@style/AppTheme.PreferenceDialog"
126150
android:defaultValue="@color/track_color_3_default"
127151
android:key="@string/APP_PREF_TRACK_COLOR_3"
128152
android:summary="@string/track_color_3_summary"
129153
android:title="@string/track_color_3_title"
130-
app:indicatorColorPreview="true" />
154+
app:barsLength="@dimen/defaultBarLength"
155+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
156+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
157+
app:barsThickness="@dimen/defaultBarThickness"
158+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
159+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
160+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
161+
app:huePointerRadius="@dimen/defaultPointerRadius"
162+
app:hueWheelRadius="@dimen/defaultWheelRadius"
163+
app:hueWheelThickness="@dimen/defaultWheelThickness"
164+
app:indicatorColorPreview="true"
165+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
166+
131167
<com.github.koston.preference.ColorPreference
132168
style="@style/AppTheme.PreferenceDialog"
133169
android:defaultValue="@color/track_color_4_default"
134170
android:key="@string/APP_PREF_TRACK_COLOR_4"
135171
android:summary="@string/track_color_4_summary"
136172
android:title="@string/track_color_4_title"
137-
app:indicatorColorPreview="true" />
173+
app:barsLength="@dimen/defaultBarLength"
174+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
175+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
176+
app:barsThickness="@dimen/defaultBarThickness"
177+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
178+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
179+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
180+
app:huePointerRadius="@dimen/defaultPointerRadius"
181+
app:hueWheelRadius="@dimen/defaultWheelRadius"
182+
app:hueWheelThickness="@dimen/defaultWheelThickness"
183+
app:indicatorColorPreview="true"
184+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
185+
138186
<com.github.koston.preference.ColorPreference
139187
style="@style/AppTheme.PreferenceDialog"
140188
android:defaultValue="@color/track_color_5_default"
141189
android:key="@string/APP_PREF_TRACK_COLOR_5"
142190
android:summary="@string/track_color_5_summary"
143191
android:title="@string/track_color_5_title"
144-
app:indicatorColorPreview="true" />
192+
app:barsLength="@dimen/defaultBarLength"
193+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
194+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
195+
app:barsThickness="@dimen/defaultBarThickness"
196+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
197+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
198+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
199+
app:huePointerRadius="@dimen/defaultPointerRadius"
200+
app:hueWheelRadius="@dimen/defaultWheelRadius"
201+
app:hueWheelThickness="@dimen/defaultWheelThickness"
202+
app:indicatorColorPreview="true"
203+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
204+
145205
<com.github.koston.preference.ColorPreference
146206
style="@style/AppTheme.PreferenceDialog"
147207
android:defaultValue="@color/track_color_speed_low_default"
148208
android:key="@string/APP_PREF_TRACK_COLOR_SPEED_LOW"
149209
android:summary="@string/track_color_speed_low_summary"
150210
android:title="@string/track_color_speed_low_title"
151-
app:indicatorColorPreview="true" />
211+
app:barsLength="@dimen/defaultBarLength"
212+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
213+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
214+
app:barsThickness="@dimen/defaultBarThickness"
215+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
216+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
217+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
218+
app:huePointerRadius="@dimen/defaultPointerRadius"
219+
app:hueWheelRadius="@dimen/defaultWheelRadius"
220+
app:hueWheelThickness="@dimen/defaultWheelThickness"
221+
app:indicatorColorPreview="true"
222+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
223+
152224
<com.github.koston.preference.ColorPreference
153225
style="@style/AppTheme.PreferenceDialog"
154226
android:defaultValue="@color/track_color_speed_average_default"
155227
android:key="@string/APP_PREF_TRACK_COLOR_SPEED_AVERAGE"
156228
android:summary="@string/track_color_speed_average_summary"
157229
android:title="@string/track_color_speed_average_title"
158-
app:indicatorColorPreview="true" />
230+
app:barsLength="@dimen/defaultBarLength"
231+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
232+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
233+
app:barsThickness="@dimen/defaultBarThickness"
234+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
235+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
236+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
237+
app:huePointerRadius="@dimen/defaultPointerRadius"
238+
app:hueWheelRadius="@dimen/defaultWheelRadius"
239+
app:hueWheelThickness="@dimen/defaultWheelThickness"
240+
app:indicatorColorPreview="true"
241+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
242+
159243
<com.github.koston.preference.ColorPreference
160244
style="@style/AppTheme.PreferenceDialog"
161245
android:defaultValue="@color/track_color_speed_high_default"
162246
android:key="@string/APP_PREF_TRACK_COLOR_SPEED_HIGH"
163247
android:summary="@string/track_color_speed_high_summary"
164248
android:title="@string/track_color_speed_high_title"
165-
app:indicatorColorPreview="true" />
249+
app:barsLength="@dimen/defaultBarLength"
250+
app:barsPointerHaloRadius="@dimen/defaultBarPointerHaloRadius"
251+
app:barsPointerRadius="@dimen/defaultBarPointerRadius"
252+
app:barsThickness="@dimen/defaultBarThickness"
253+
app:hueCenterCircleHaloRadius="@dimen/defaultCenterHaloRadius"
254+
app:hueCenterCircleRadius="@dimen/defaultCenterRadius"
255+
app:huePointerHaloRadius="@dimen/defaultPointerHaloRadius"
256+
app:huePointerRadius="@dimen/defaultPointerRadius"
257+
app:hueWheelRadius="@dimen/defaultWheelRadius"
258+
app:hueWheelThickness="@dimen/defaultWheelThickness"
259+
app:indicatorColorPreview="true"
260+
app:pointersHaloColor="@color/defaultPointerHaloColor" />
166261
</PreferenceCategory>
167262

168263
<PreferenceCategory app:title="@string/menu_advanced">

0 commit comments

Comments
 (0)