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

Better look on Linux? #14

Open
hadess opened this issue Oct 10, 2024 · 0 comments
Open

Better look on Linux? #14

hadess opened this issue Oct 10, 2024 · 0 comments

Comments

@hadess
Copy link

hadess commented Oct 10, 2024

I tried applying the following theme after installing ttkthemes with pip:

diff --git a/NiimPrintX/ui/main.py b/NiimPrintX/ui/main.py
index 390ff8dbbd8a..d9fdf9560a08 100644
--- a/NiimPrintX/ui/main.py
+++ b/NiimPrintX/ui/main.py
@@ -1,6 +1,7 @@
 import os
 import tkinter as tk
 from tkinter import ttk 
+import ttkthemes
 from tkinter import messagebox
 
 from .AppConfig import AppConfig
@@ -70,6 +71,9 @@ class LabelPrinterApp(tk.Tk):
         elif self.app_config.os_system == "Windows":
             style = ttk.Style(self)
             style.theme_use('xpnative')
+        else:
+            style = ttkthemes.ThemedStyle()
+            style.theme_use('yaru')
 
         self.create_widgets()
         self.create_menu()

but the UI looks like a mix'n'match of styles:
image

Is there a better way to get a more modern look on Linux?

hadess added a commit to hadess/flathub that referenced this issue Oct 10, 2024
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

No branches or pull requests

1 participant