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

Use themed file dialogs everywhere #4298

Merged
merged 1 commit into from
Apr 21, 2018

Conversation

Wallacoloo
Copy link
Member

Previously lmms used themed dialogs for project saving/opening, but not when changing settings (edit -> settings).

With this change, the settings editor also uses themed dialogs. I believe that means every file dialog in lmms now uses our own FileDialog themed dialog type.


Since everything's going through FileDialog, it's just one line of code to enable/disable theming should I someday manage to convince you all that we should use OS-native dialogs instead of custom-themed ones (because, say, the gtk file chooser includes previews for image types whereas custom dialogs don't, or because OS-native file choosers include user-bookmarked locations, whereas custom dialogs don't, ...).

But regardless of your views when it comes to themed vs native dialogs (hint: native is better), hopefully everyone agrees at the very least that making the application internally consistent is better than mixing themed and native dialogs, which is what this PR accomplishes.

Previously lmms used themed dialogs for project saving/opening, but not
when editing settings (edit -> settings).

With this change, the settings editor also uses themed dialogs.
@Sawuare
Copy link
Member

Sawuare commented Apr 17, 2018

we should use OS-native dialogs instead of custom-themed ones (because, say, the gtk file chooser includes previews for image types whereas custom dialogs don't, or because OS-native file choosers include user-bookmarked locations, whereas custom dialogs don't, ...).

I totally agree. FWIW, LMMS is the only program I use that uses custom-themed file dialogs.

@Spekular
Copy link
Member

Spekular commented Apr 17, 2018 via email

@Wallacoloo Wallacoloo merged commit 3401de4 into LMMS:master Apr 21, 2018
@Wallacoloo Wallacoloo deleted the feature/native-dialogs branch April 21, 2018 02:01
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Previously lmms used themed dialogs for project saving/opening, but not
when editing settings (edit -> settings).

With this change, the settings editor also uses themed dialogs.
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