Jaya icon indicating copy to clipboard operation
Jaya copied to clipboard

Allow disabling default storage sources

Open Splitwirez opened this issue 4 years ago • 6 comments

Strange as this may sound, not everyone is going to want all of the storage sources Jaya currently includes. They may not use DropBox, for example. I think we should allow the user to turn these storage sources off, to accomodate this need.

Splitwirez avatar Jun 03 '20 01:06 Splitwirez

This is in my mind, I will extend the plugin (storage source providers) infrastructure to enable/disable them via settings.

waliarubal avatar Jun 03 '20 12:06 waliarubal

Excellent. I think onscreen ToggleSwitches next to the entries in the Plugins list would be a good approach for exposing the option to the user in the UI.

Splitwirez avatar Jun 03 '20 13:06 Splitwirez

Can you style checkbox to look like toggle switch?

waliarubal avatar Jun 03 '20 15:06 waliarubal

Can you style checkbox to look like toggle switch?

ToggleSwitches are functionally different from CheckBoxes - you can drag/swipe a ToggleSwitch to the left or right end to explicitly set it to one state or the other, which is not true of CheckBoxes. I already intend to port my WPF ToggleSwitch control to Avalonia for my Mechanism library, so perhaps we could use that implementation once it takes shape?

Splitwirez avatar Jun 03 '20 15:06 Splitwirez

Okay, we just need true and false state of it. Checkbox has an intermediate too which won't be of any use for us in this implementation. I will achieve this with checkbox for now which we can replace with switch control once you have done it.

But I pretty much feel that checkbox can be styled as switch based on IsChecked property ignoring the intermediate state or treating it as false.

waliarubal avatar Jun 03 '20 15:06 waliarubal

That should work for now, yes.

Splitwirez avatar Jun 03 '20 15:06 Splitwirez