this post was submitted on 18 Nov 2023
1 points (100.0% liked)

Nix

10 readers
1 users here now

founded 1 year ago
MODERATORS
 

I am trying to apply qt theme to share picker. I have QT_QPA_PLATFORMTHEME variable set to qt5ct and working qt configuration in home-manager, but share picker uses ugly default theme. Wiki instructions dont work either.

share picker

qt5ct and qt6ct

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago (1 children)

Hi dude, I have the same problem and I don't know what's going on, moreover, I don't know how to use qt5ct and qt6ct normally, can you please show your config, otherwise I have a standard white qt theme and I'm already annoyed, thank for much!

[–] [email protected] 1 points 11 months ago (1 children)

I tried launching hyprland-share-picker with different QT_QPA_PLATFORMTHEME variables and setting it to gtk3 works, but when the window loses focus it looks bad, so I think the qt6ct style is not working for some reason.

Here is my home.nix:

{
  ...
  gtk = {  
    enable = true;  
    theme.name = "Catppuccin-Mocha-Standard-Blue-Dark";  
    cursorTheme.name = "Adwaita";  
    cursorTheme.size = 24;  
    iconTheme.name = "Tela-circle-dracula-dark";  
    font.name = "Inter Nerd Font";  
    font.size = 12;  
  };  
  home.pointerCursor = {  
    gtk.enable = true;  
    package = pkgs.gnome-themes-extra;  
    name = "Adwaita";  
    size = 24;  
  };  
  qt = {  
    enable = true;  
    platformTheme = "qtct";  
  };
  ...
}
[–] [email protected] 1 points 11 months ago

Thank you, but I asked about it outside the context of the Hyprland share-picker, I meant that when I prescribe variables for qt, qtct tells me that the variables are not disclosed and they should be set as "qt5ct". Your screenshot shows that the qt theme works at least in qt5ct and qt6ct itself, I have a warning that the variables are not set and the application is not configured.