Jaya
Jaya copied to clipboard
Allow disabling default storage sources
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.
This is in my mind, I will extend the plugin (storage source providers) infrastructure to enable/disable them via settings.
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.
Can you style checkbox to look like toggle switch?
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?
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.
That should work for now, yes.