Skip to content

Commit 73e9080

Browse files
authored
feat(ui): replace checkboxes with material switches (#170)
* feat(ui): replace checkboxes with material switches See: https://github.com/orgs/FossifyOrg/discussions/78 * docs(changelog): replace checkboxes with switches
1 parent 581d56f commit 73e9080

File tree

2 files changed

+37
-30
lines changed

2 files changed

+37
-30
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Replaced checkboxes with switches
13+
1014
## [1.0.1] - 2024-03-17
1115

1216
### Changed
17+
1318
- Folders now use primary/accent color.
1419
- Enhanced search performance in the text editor.
1520
- Added some translations.
1621

1722
### Fixed
23+
1824
- Addressed unnecessary delays when renaming files.
1925
- Fixed unresponsive behavior when viewing contents of a zip file.
2026
- Disabled the use of invalid characters such as `/` for batch file renaming.
@@ -23,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2329
## [1.0.0] - 2024-01-07
2430

2531
### Added
32+
2633
- Initial release
2734

2835
[Unreleased]: https://github.com/FossifyOrg/File-Manager/compare/1.0.1...HEAD

app/src/main/res/layout/activity_settings.xml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@
6565

6666
<RelativeLayout
6767
android:id="@+id/settings_use_english_holder"
68-
style="@style/SettingsHolderCheckboxStyle"
68+
style="@style/SettingsHolderSwitchStyle"
6969
android:layout_width="match_parent"
7070
android:layout_height="wrap_content">
7171

72-
<org.fossify.commons.views.MyAppCompatCheckbox
72+
<org.fossify.commons.views.MyMaterialSwitch
7373
android:id="@+id/settings_use_english"
74-
style="@style/SettingsCheckboxStyle"
74+
style="@style/SettingsSwitchStyle"
7575
android:layout_width="match_parent"
7676
android:layout_height="wrap_content"
7777
android:text="@string/use_english_language" />
@@ -171,13 +171,13 @@
171171

172172
<RelativeLayout
173173
android:id="@+id/settings_press_back_twice_holder"
174-
style="@style/SettingsHolderCheckboxStyle"
174+
style="@style/SettingsHolderSwitchStyle"
175175
android:layout_width="match_parent"
176176
android:layout_height="wrap_content">
177177

178-
<org.fossify.commons.views.MyAppCompatCheckbox
178+
<org.fossify.commons.views.MyMaterialSwitch
179179
android:id="@+id/settings_press_back_twice"
180-
style="@style/SettingsCheckboxStyle"
180+
style="@style/SettingsSwitchStyle"
181181
android:layout_width="match_parent"
182182
android:layout_height="wrap_content"
183183
android:text="@string/press_back_twice" />
@@ -197,13 +197,13 @@
197197

198198
<RelativeLayout
199199
android:id="@+id/settings_show_hidden_holder"
200-
style="@style/SettingsHolderCheckboxStyle"
200+
style="@style/SettingsHolderSwitchStyle"
201201
android:layout_width="match_parent"
202202
android:layout_height="wrap_content">
203203

204-
<org.fossify.commons.views.MyAppCompatCheckbox
204+
<org.fossify.commons.views.MyMaterialSwitch
205205
android:id="@+id/settings_show_hidden"
206-
style="@style/SettingsCheckboxStyle"
206+
style="@style/SettingsSwitchStyle"
207207
android:layout_width="match_parent"
208208
android:layout_height="wrap_content"
209209
android:text="@string/show_hidden_items" />
@@ -223,13 +223,13 @@
223223

224224
<RelativeLayout
225225
android:id="@+id/settings_enable_pull_to_refresh_holder"
226-
style="@style/SettingsHolderCheckboxStyle"
226+
style="@style/SettingsHolderSwitchStyle"
227227
android:layout_width="match_parent"
228228
android:layout_height="wrap_content">
229229

230-
<org.fossify.commons.views.MyAppCompatCheckbox
230+
<org.fossify.commons.views.MyMaterialSwitch
231231
android:id="@+id/settings_enable_pull_to_refresh"
232-
style="@style/SettingsCheckboxStyle"
232+
style="@style/SettingsSwitchStyle"
233233
android:layout_width="match_parent"
234234
android:layout_height="wrap_content"
235235
android:text="@string/enable_pull_to_refresh" />
@@ -249,13 +249,13 @@
249249

250250
<RelativeLayout
251251
android:id="@+id/settings_keep_last_modified_holder"
252-
style="@style/SettingsHolderCheckboxStyle"
252+
style="@style/SettingsHolderSwitchStyle"
253253
android:layout_width="match_parent"
254254
android:layout_height="wrap_content">
255255

256-
<org.fossify.commons.views.MyAppCompatCheckbox
256+
<org.fossify.commons.views.MyMaterialSwitch
257257
android:id="@+id/settings_keep_last_modified"
258-
style="@style/SettingsCheckboxStyle"
258+
style="@style/SettingsSwitchStyle"
259259
android:layout_width="match_parent"
260260
android:layout_height="wrap_content"
261261
android:text="@string/keep_last_modified" />
@@ -264,13 +264,13 @@
264264

265265
<RelativeLayout
266266
android:id="@+id/settings_skip_delete_confirmation_holder"
267-
style="@style/SettingsHolderCheckboxStyle"
267+
style="@style/SettingsHolderSwitchStyle"
268268
android:layout_width="match_parent"
269269
android:layout_height="wrap_content">
270270

271-
<org.fossify.commons.views.MyAppCompatCheckbox
271+
<org.fossify.commons.views.MyMaterialSwitch
272272
android:id="@+id/settings_skip_delete_confirmation"
273-
style="@style/SettingsCheckboxStyle"
273+
style="@style/SettingsSwitchStyle"
274274
android:layout_width="match_parent"
275275
android:layout_height="wrap_content"
276276
android:text="@string/skip_delete_confirmation" />
@@ -290,13 +290,13 @@
290290

291291
<RelativeLayout
292292
android:id="@+id/settings_password_protection_holder"
293-
style="@style/SettingsHolderCheckboxStyle"
293+
style="@style/SettingsHolderSwitchStyle"
294294
android:layout_width="match_parent"
295295
android:layout_height="wrap_content">
296296

297-
<org.fossify.commons.views.MyAppCompatCheckbox
297+
<org.fossify.commons.views.MyMaterialSwitch
298298
android:id="@+id/settings_password_protection"
299-
style="@style/SettingsCheckboxStyle"
299+
style="@style/SettingsSwitchStyle"
300300
android:layout_width="match_parent"
301301
android:layout_height="wrap_content"
302302
android:text="@string/password_protect_hidden_items" />
@@ -305,13 +305,13 @@
305305

306306
<RelativeLayout
307307
android:id="@+id/settings_app_password_protection_holder"
308-
style="@style/SettingsHolderCheckboxStyle"
308+
style="@style/SettingsHolderSwitchStyle"
309309
android:layout_width="match_parent"
310310
android:layout_height="wrap_content">
311311

312-
<org.fossify.commons.views.MyAppCompatCheckbox
312+
<org.fossify.commons.views.MyMaterialSwitch
313313
android:id="@+id/settings_app_password_protection"
314-
style="@style/SettingsCheckboxStyle"
314+
style="@style/SettingsSwitchStyle"
315315
android:layout_width="match_parent"
316316
android:layout_height="wrap_content"
317317
android:text="@string/password_protect_whole_app" />
@@ -320,13 +320,13 @@
320320

321321
<RelativeLayout
322322
android:id="@+id/settings_file_deletion_password_protection_holder"
323-
style="@style/SettingsHolderCheckboxStyle"
323+
style="@style/SettingsHolderSwitchStyle"
324324
android:layout_width="match_parent"
325325
android:layout_height="wrap_content">
326326

327-
<org.fossify.commons.views.MyAppCompatCheckbox
327+
<org.fossify.commons.views.MyMaterialSwitch
328328
android:id="@+id/settings_file_deletion_password_protection"
329-
style="@style/SettingsCheckboxStyle"
329+
style="@style/SettingsSwitchStyle"
330330
android:layout_width="match_parent"
331331
android:layout_height="wrap_content"
332332
android:text="@string/password_protect_file_deletion" />
@@ -335,13 +335,13 @@
335335

336336
<RelativeLayout
337337
android:id="@+id/settings_enable_root_access_holder"
338-
style="@style/SettingsHolderCheckboxStyle"
338+
style="@style/SettingsHolderSwitchStyle"
339339
android:layout_width="match_parent"
340340
android:layout_height="wrap_content">
341341

342-
<org.fossify.commons.views.MyAppCompatCheckbox
342+
<org.fossify.commons.views.MyMaterialSwitch
343343
android:id="@+id/settings_enable_root_access"
344-
style="@style/SettingsCheckboxStyle"
344+
style="@style/SettingsSwitchStyle"
345345
android:layout_width="match_parent"
346346
android:layout_height="wrap_content"
347347
android:text="@string/enable_root_access" />

0 commit comments

Comments
 (0)