Bug 496074 - tellico does not use kvantum theme
Summary: tellico does not use kvantum theme
Status: REOPENED
Alias: None
Product: tellico
Classification: Applications
Component: general (show other bugs)
Version: 4.0.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 05:45 UTC by bart.g.dawes
Modified: 2025-01-17 01:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.1
Sentry Crash Report:


Attachments
Kvantum Manager Theme / Ark / Audacious / Tellico (411.30 KB, image/jpeg)
2024-11-11 05:45 UTC, bart.g.dawes
Details
Not quite resolved (111.44 KB, image/png)
2025-01-15 12:53 UTC, MrH
Details
Default theme still used instead of kvantum theme (169.93 KB, image/png)
2025-01-17 01:07 UTC, bart.g.dawes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bart.g.dawes 2024-11-11 05:45:50 UTC
Created attachment 175721 [details]
Kvantum Manager Theme / Ark / Audacious / Tellico

Tellico does not seem to recognize the theme set in Kvantum Manager 1.1.3. Other applications I have installed that use Qt6 recognize the theme, however, tellico appears to use the default theme. Screenshots attached. Please let me know if there are any additional details I could provide.
Comment 1 Robby Stephenson 2024-11-25 00:25:24 UTC
(In reply to bart.g.dawes from comment #0)
> Tellico does not seem to recognize the theme set in Kvantum Manager 1.1.3.
> Other applications I have installed that use Qt6 recognize the theme,
> however, tellico appears to use the default theme. Screenshots attached.

So just to confirm, you're using the Qt6 version of both Tellico and Kvantum?
Comment 2 MrH 2024-11-27 09:33:31 UTC
I have the same issue using tellico with qt6 and qt6ct.
Comment 3 Robby Stephenson 2024-11-28 17:47:58 UTC
(In reply to MrH from comment #2)
> I have the same issue using tellico with qt6 and qt6ct.

Kvantum works fine with Tellico for me, when both are compiled against qt6 and I select the widget and theme in the system settings. So something is interfering with things. Can you provide the Qt and Plasma versions that you're using? You've restarted Tellico, I expect? I don't expect there to be anything useful, but if you run Tellico with the --log option and look at the log from the Help menu, is there anything there?

The only issue I do see is that the web view scroll bar doesn't use the theme engine, so I can check into that.
Comment 4 MrH 2024-11-29 08:47:07 UTC
(In reply to Robby Stephenson from comment #3)
> (In reply to MrH from comment #2)
> > I have the same issue using tellico with qt6 and qt6ct.
> 
> Kvantum works fine with Tellico for me, when both are compiled against qt6
> and I select the widget and theme in the system settings. So something is
> interfering with things. Can you provide the Qt and Plasma versions that
> you're using? You've restarted Tellico, I expect? I don't expect there to be
> anything useful, but if you run Tellico with the --log option and look at
> the log from the Help menu, is there anything there?
> 
> The only issue I do see is that the web view scroll bar doesn't use the
> theme engine, so I can check into that.

I ran tellico with --log and I removed the unrelevant lines (lines with paths to database)

[09:41:10] WARNING Watching absolute paths is not supported "/usr/share/color-schemes/BreezeLight.colors"
[09:41:10] WARNING empty xslt file
[09:41:10] WARNING empty xslt file
[09:41:10] WARNING eglSwapBuffers failed with 0x300d, surface: 0x0
[09:41:11] Removing image from cache: "gradient_bg.png"
[09:41:11] Deleting image: "gradient_bg.png"
[09:41:11] Loading image from data: "gradient_bg.png"
[09:41:11] Removing image from cache: "gradient_header.png"
[09:41:11] Deleting image: "gradient_header.png"
[09:41:11] Loading image from data: "gradient_header.png"
[09:41:18] WARNING QPainter::begin: A paint device can only be painted by one painter at a time.
[09:41:18] WARNING QPainter::setCompositionMode: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QPainter::fillRect: Painter not active
[09:41:18] WARNING QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

I'm running it (for a while now) on Arch/Hyprland without issues, until recently.
I use qt6ct v0.9 with style qt6gtk2.
Comment 5 bart.g.dawes 2024-11-30 05:51:49 UTC
I'm using qt6ct v0.9 as well with style kvantum-dark. 

Thanks for all of your work!!
Comment 6 Robby Stephenson 2024-12-21 22:18:53 UTC
(In reply to bart.g.dawes from comment #5)
> I'm using qt6ct v0.9 as well with style kvantum-dark. 

I still can't reproduce the problem, but your mention of qt6gtk makes me wonder if you're running under Plasma desktop or not? Or are you running in a GNOME session?
Comment 7 bart.g.dawes 2024-12-28 05:42:00 UTC
(In reply to Robby Stephenson from comment #6)
> (In reply to bart.g.dawes from comment #5)
> > I'm using qt6ct v0.9 as well with style kvantum-dark. 
> 
> I still can't reproduce the problem, but your mention of qt6gtk makes me
> wonder if you're running under Plasma desktop or not? Or are you running in
> a GNOME session?

You are correct, I am not running under Plasma desktop.

I'm running the following:
DE: Xfce4 4.20
WM: bspwm
Compositor: picom

Sincere apologies for not providing these details initially. Please let me know if there are any additional details I could provide.
Comment 8 Robby Stephenson 2024-12-30 21:10:48 UTC
Git commit 00273e95d10c47955fe91bbe58fab39164cf1ddb by Robby Stephenson.
Committed on 30/12/2024 at 19:20.
Pushed by rstephenson into branch 'master'.

Add setting to choose application style

M  +9    -1    src/mainwindow.cpp
M  +3    -3    src/tellicoui.rc

https://invent.kde.org/office/tellico/-/commit/00273e95d10c47955fe91bbe58fab39164cf1ddb
Comment 9 Robby Stephenson 2024-12-30 21:10:50 UTC
Git commit f6169f3425b4b329856297bb4dcea7d226f39e93 by Robby Stephenson.
Committed on 30/12/2024 at 19:54.
Pushed by rstephenson into branch 'master'.

Only fallback to Breeze style if qt6ct is not set
FIXED-IN: 4.1

M  +6    -1    src/main.cpp

https://invent.kde.org/office/tellico/-/commit/f6169f3425b4b329856297bb4dcea7d226f39e93
Comment 10 MrH 2025-01-15 11:58:18 UTC
It's better, but for me not completely resolved.
Comment 11 Robby Stephenson 2025-01-15 12:22:28 UTC
(In reply to MrH from comment #10)
> It's better, but for me not completely resolved.

Could you be more specific?
Comment 12 MrH 2025-01-15 12:53:11 UTC
Created attachment 177378 [details]
Not quite resolved

An example of not quite okay yet.
Comment 13 Robby Stephenson 2025-01-16 02:36:28 UTC
(In reply to MrH from comment #12)
> Created attachment 177378 [details]
> Not quite resolved
> 
> An example of not quite okay yet.

Thanks. Is Tellico the only KDE app that exhibits that issue? Not kate or dolphin or falkon, for example? Tellico isn't doing anything unusual in its codebase.
Comment 14 MrH 2025-01-16 08:30:42 UTC
(In reply to Robby Stephenson from comment #13)
> (In reply to MrH from comment #12)
> > Created attachment 177378 [details]
> > Not quite resolved
> > 
> > An example of not quite okay yet.
> 
> Thanks. Is Tellico the only KDE app that exhibits that issue? Not kate or
> dolphin or falkon, for example? Tellico isn't doing anything unusual in its
> codebase.

I don't have any other KDE app installed, so I installed dolphin to test.
It appears neither follows the qt6-settiing: style: qt6gtk2 and palette: default.
When I change palette to 'Custom: Breeze Dark (KColorScheme) the theme is correctly displayed (in both Dolphin and Tellico).
Comment 15 bart.g.dawes 2025-01-17 01:07:37 UTC
Created attachment 177447 [details]
Default theme still used instead of kvantum theme

Unfortunately I noticed no change in the theme as well. Unrelated but I'm still encountering the delay issue that I believe Bug 490922 was supposed to have resolved.