-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added widget with just a sync icon #1340
base: main-ose
Are you sure you want to change the base?
Conversation
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Signed-off-by: Arnau Mora <[email protected]>
Not really a thing that needs to be done quickly, but at least it's something, and since those files are pretty much never modified, we can just leave this ready until we want to merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, but wow that is a lot of new code. I can't help but think it would be less if we had only one widget.
Is it hard to make it one widget only, which resizes and then simply hides and shows the text depending on the widget size? Without the text they are exactly the same, no?
Also, does it need to be a circle? When adding the widget I can see the widget as a square, with/without rounded borders (depending on the widget settings) for a very short time before it goes back to circle again. I could think of users who want it to behave like the other widgets do. That is to have a full background color for the widget which is cropped by the widget setting and not enforce the rounded corners (circle shape) ourselves.
I took the screenshot at the right moment, but it turns back into a circle right after:
No, it should be easy, but I think @devvv4ever told me to have two different widgets, in case anyone wants a small widget with text |
Not technically, but I guess we can choose |
You can add the same widget twice and resize one of the instances to be smaller. They will look differently, but have the same action. So in the end it'll have the same effect as creating two different ones. I think a second widget only makes sense if we want to add other functionality or show data, etc. |
If you can manage to make the widget "responsive" in the sense of adapting text to to the user set size of the widget one widget would be good too. Speaking of: if the user sets it to 1x1 only display a sync button, and if it is large enough display an additional label. But it is of course more work to make the "one" widget more sophisticated ;-) for example: I also think that users like to see these widget options as seen in your previews in the first posting here (which I definitely like!) - so they "see what they get" when choosing between the two options. But you decide :) |
I don't think we should do it, if it means maintaining three different widget code bases. If we're able to reuse the same code it could be an option. |
It would not mean 3 widgets. Only two: one 1x1 fixed sync button widget without text and a second "resizeable" one with a label on it with min-size 1x2 and that can be enlargend as the user wishes. |
Purpose
Some people is requesting a simple square widget to run synchronization for DAVx⁵ manually, this adds a new widget to extend the existing one.
Short description
Added a new widget with just an icon, that runs synchronization when clicked:
Screenshot
This doesn't exclude the already existing one with a label, but gives a new simpler option to the users.
TODO:
For some reason both widgets have the same label, it would be cool to be able to differentiate them.
Fixed
It would be cool to show a proper preview to know how the widget will look like.
Fixed
Checklist