Skip to content

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jul 5, 2025

Any setting that is actively supported should be accessible through the UI. A user could have reason to change the datetime format for a particular folder/purpose.

For now, the existing three options are exposed as radiobuttons appended to the AppMenu.

Screenshot from 2025-09-19 15 35 04

@jeremypw jeremypw requested a review from a team July 5, 2025 18:16
@jeremypw jeremypw mentioned this pull request Jul 6, 2025
Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

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

There are conflicts so I haven't tested but this code looks good to me.

@jeremypw jeremypw requested a review from ryonakano September 19, 2025 15:33
jeremypw and others added 4 commits September 21, 2025 17:26
Remove leftover code

Co-authored-by: Ryo Nakano <[email protected]>
Remove extraneous space

Co-authored-by: Ryo Nakano <[email protected]>
Remove extraneous space

Co-authored-by: Ryo Nakano <[email protected]>
@jeremypw jeremypw requested a review from ryonakano September 21, 2025 16:34
Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

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

Leaving one optional comment but otherwise LGTM and works as expected.

locale_button.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUITEM);
var informal_button = new Gtk.RadioButton.with_label_from_widget (iso_button, DateFormatMode.INFORMAL.to_string ());
informal_button.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUITEM);
//TODO Add a custom format wizard? Or a detailed informat format? Or "days ago" format?
Copy link
Member

Choose a reason for hiding this comment

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

I think we should simply remove this TODO and file an issue if we won't address it in this PR but really want to in the future. TODO comments are often buried in projects that have many source codes and are developed by multiple developers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, I've now limited this PR to exposing the setting. We can consider other formats later.

@jeremypw jeremypw requested a review from ryonakano September 22, 2025 16:09
Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

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

Thank you!

@ryonakano ryonakano merged commit c0f8e85 into main Sep 22, 2025
4 checks passed
@ryonakano ryonakano deleted the jeremypw/datetimeformat/expose-setting branch September 22, 2025 21:30
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.

3 participants