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

nixos/pantheon, nixos/cinnamon: Drop qgnomeplatform #248544

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

bobby285271
Copy link
Member

@bobby285271 bobby285271 commented Aug 11, 2023

Description of changes

#245166 (comment)

The upstream is officially not maintained, and qadwaitadecoration does not seem to be xorg-related. We should have proper shadows when using server side decoration.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Comment on lines -216 to -218
qt.enable = true;
qt.platformTheme = "gnome";
qt.style = "adwaita";
Copy link
Member Author

Choose a reason for hiding this comment

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

Specifically for Cinnamon, @mkg20001 do you have a preference on whether this should default to fusion or gtk2? I am aware that Mint use gtk2 though this can look ugly if gtk2 theme is missing. I personally have no preference here.

Copy link
Member

Choose a reason for hiding this comment

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

fusion is a gtk3 theme? or both and gtk2 is just a name? i would prefer a gtk3 theme, because its newer

Copy link
Member Author

Choose a reason for hiding this comment

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

I think there is gtk3 the platformtheme in qtbase, I don't think this needs to be specified and you are all set if opening a Qt app uses your icon theme set in cinnamon-settings and opening a file from e.g. kate uses a native GTK file chooser.

But there is no gtk3 the style, I don't think Qt is willing to do it, the default style will be Fusion. Which means this cannot make your Qt apps look and feel matches your GTK theme.

The gtk2 platformtheme & style are third party projects, that can make Qt apps look and feel matches your GTK theme, but implementation will actually depend on gtk2.

Copy link
Member

Choose a reason for hiding this comment

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

I don't feel qualified enough to give a last word, but the matching theme feature sounds nice.

Copy link
Member Author

Choose a reason for hiding this comment

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

the matching theme feature sounds nice

Ugh, so to be clear shall we apply the gtk2 platformtheme & style by default or do you think asking users to do that in their NixOS config is okay? 😂 We actually should have fair reasons to do either

Copy link
Member

Choose a reason for hiding this comment

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

by default sounds fine, maybe disable if other desktop environments are enabled

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe disable if other desktop environments are enabled

Not sure if I get your idea right, I think both gtk2 and fusion are used in at least one desktops right now I think (e.g. budgie for gtk2 and xfce for fusion).

Copy link
Member Author

Choose a reason for hiding this comment

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

by default sounds fine

Okay I filed #249712

The upstream is not maintained, and qadwaitadecoration
does not seem to be xorg-related. We should have proper
shadows when using SSD.
The upstream is not maintained, and qadwaitadecoration
does not seem to be xorg-related. We should have proper
shadows when using SSD.
@bobby285271 bobby285271 merged commit 85efefd into NixOS:master Aug 14, 2023
25 checks passed
@bobby285271 bobby285271 deleted the rm/qgnomeplatform branch August 14, 2023 02:49
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.

None yet

2 participants