Skip to content

Added ability to disable highlighting of weekend days in DatePickerPopup.#4151

Merged
emilk merged 6 commits intoemilk:masterfrom
hiyosilver:datepicker_weekend_highlighting
Mar 21, 2024
Merged

Added ability to disable highlighting of weekend days in DatePickerPopup.#4151
emilk merged 6 commits intoemilk:masterfrom
hiyosilver:datepicker_weekend_highlighting

Conversation

@hiyosilver
Copy link
Contributor

I added a handfull of lines to allow for the red highlight on weekends in DatePickerPopup to be disabled.

I tried to follow the rules, but I've never done any kind of PR before, and I'm also not sure if this is at all the kind of thing that is wanted at the moment. If it is not, I'm happy to just have this removed. Just a tiny little addition I would find useful.

Added 'highlight_weekends' field and setter.
Added check for 'highlight_weekends' when drawing calendar.
Added 'highlight_weekends' to creation of popup struct.
@emilk
Copy link
Owner

emilk commented Mar 12, 2024

requires rustfmt

@hiyosilver
Copy link
Contributor Author

I thought I had done it properly, but I somehow managed to slip an extra space in there.
I believe that was the only issue and it should work now.

emilk and others added 2 commits March 20, 2024 14:03
Restored return expression in `highlight_weekends` that was removed by previous commit.
@emilk emilk merged commit 365d035 into emilk:master Mar 21, 2024
@hiyosilver hiyosilver deleted the datepicker_weekend_highlighting branch March 22, 2024 13:35
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…pup. (emilk#4151)

I added a handfull of lines to allow for the red highlight on weekends
in `DatePickerPopup` to be disabled.

I tried to follow the rules, but I've never done any kind of PR before,
and I'm also not sure if this is at all the kind of thing that is wanted
at the moment. If it is not, I'm happy to just have this removed. Just a
tiny little addition I would find useful.

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants