Skip to content
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 some submenu to select time by hours, minutes, seconds #57

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

F3l1XQu1ll
Copy link
Contributor

@F3l1XQu1ll F3l1XQu1ll commented Jul 21, 2020

Please notice that this will only allow to set the interval in hours, minutes and seconds; because using the spin button is painfully slow and ineffective. This might be changed in the future to control at which time of the day the image is going to be displayed …

However, in this current implementation it does only change the value of the current spin button and nothing more.
Controlling the start time would require to change the UI in the case that the fit day option is enabled - at least in my opinion.

issue #55

@maoschanz
Copy link
Owner

ah.... Glade...

i don't understand what changed by reading the diffs, could you post a screenshot please?

@maoschanz maoschanz added the enhancement New feature or request label Jul 21, 2020
@F3l1XQu1ll
Copy link
Contributor Author

Should look like this:
Bildschirmfoto von 2020-07-22 19-55-39

@maoschanz
Copy link
Owner

Ok i see. Could you please:

  • put the code of this new popover in a distinct file
  • duplicate its content (at the left, "Start time" label + 3 spin-buttons, at the right "End time" label + 3 spin-buttons, maybe a vertical gtk separator between the 2 halfs)
  • rollback picture_widget.ui, where 90% of the changes are just glade being hostile to humans

Only do this first part, because for the following idea, i'm not sure how it'll look so i want to try various designs


As you said, the feature makes sense if and only if the wallpaper is designed to fit 24 hours. But in this case, the values to fill these spinbuttons are already computed somewhere to be shown in labels, whose visibility is already linked to whether or not it's a 24h-wallpaper

So once your popover is more reusable, the fix would "just" be to change the labels highlighted here

Capture d’écran de 2020-07-22 20-07-32

into menubuttons (for both the times where it's static and the times of the transition), where the relief is none, the popover is your file, and the label is the same as the current label.

(And then connect the spin-buttons to some methods, but i'll see this even later)

@F3l1XQu1ll
Copy link
Contributor Author

Sure, but won't be able to do this until tomorrow evening 🤔

@maoschanz
Copy link
Owner

Don't worry, take as much time as you want

@F3l1XQu1ll
Copy link
Contributor Author

Do you want me to just move the code to a new file or shall it be connected with the rest of the code?

…n class for this popup

Buttons in this class are connected to empty signals which can become connected to some other function.
The class takes a parent widget as attribute; which could be updated …
The class also takes the start and end times as hours, minutes and seconds; the spin buttons are initialized with these values.
@F3l1XQu1ll
Copy link
Contributor Author

Ok, I implemented some new class for the popover and created a new ui file as well as I reverted the old ui to the master state.
The new stuff is not connected to the main app and won't show up …
Here is a screenshot of the popup in glade:
Bildschirmfoto von 2020-07-22 23-34-58

@maoschanz
Copy link
Owner

perfect, i'll try to connect it to the rest, maybe this week

@maoschanz maoschanz merged commit 2acd8c1 into maoschanz:master Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants