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

Highlight today in date picker #426

Closed
wants to merge 8 commits into from
Closed

Highlight today in date picker #426

wants to merge 8 commits into from

Conversation

sebastianlay
Copy link

Fixes #384 and improves the styling of the date picker a bit.

Before:
before

After:
after

@cassidyjames cassidyjames requested review from a team November 4, 2020 19:57
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be embedding CSS here

@danirabbit
Copy link
Member

I've proposed styles for Gtk.Calendar here elementary/stylesheet#878

@cassidyjames
Copy link
Contributor

So this is superseded by elementary/stylesheet#878?

@danirabbit
Copy link
Member

@cassidyjames not completely. The part about marking Today is still relevant, but the styles should be removed

Comment on lines +31 to +33
To install, use `sudo ninja install`

ninja install
sudo ninja install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional since ninja will use polkit. Please revert this

Comment on lines +58 to +65
private const string CSS = """
calendar
{
background: transparent;
padding: 3px;
}
""";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styles are accounted for in the system stylesheet already, so we shouldn't have them here

Comment on lines +188 to +189
}
else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elementary code style is cuddled else

Suggested change
}
else {
} else {

@danirabbit
Copy link
Member

Gonna close this since there's been no response to code review for over a month. Please feel free to reopen if changes are made :)

@danirabbit danirabbit closed this Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Today" should be highlighted in Granite.Widgets.DatePicker
5 participants