albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.27k stars 305 forks source link

Result on input line has same color/opacity as input #1475

Closed j0hnm4r5 closed 19 hours ago

j0hnm4r5 commented 20 hours ago

Package source

Official packages from apt on Ubuntu 22.04

App logs

09:26:13 [debg:albert]        Albert version: 0.26.7
09:26:13 [debg:albert]            Build date: Nov  7 2024 17:47:57
09:26:13 [debg:albert]            Qt version: 6.2.4
09:26:13 [debg:albert]             Build ABI: x86_64-little_endian-lp64
09:26:13 [debg:albert]    Build architecture: x86_64
09:26:13 [debg:albert]      CPU architecture: x86_64
09:26:13 [debg:albert]           Kernel type: linux
09:26:13 [debg:albert]        Kernel version: 6.8.0-48-generic
09:26:13 [debg:albert]                    OS: Ubuntu 22.04.5 LTS
09:26:13 [debg:albert]               OS type: ubuntu
09:26:13 [debg:albert]            OS version: 22.04
09:26:13 [debg:albert]         Platform name: xcb
09:26:13 [debg:albert]            Style name: fusion
09:26:13 [debg:albert]      Available styles: Windows, Fusion
09:26:13 [debg:albert]            Icon theme: Yaru-blue
09:26:13 [debg:albert]                  Font: Ubuntu,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
09:26:13 [debg:albert]              Language: English
09:26:13 [debg:albert]                Locale: en_US
09:26:13 [debg:albert]       Binary location: /usr/bin/albert
09:26:13 [debg:albert]             Arguments: albert

Issue is visual and I don't see anything in the logs that is relevant. If truly needed, I'll post a full (but redacted) version on request.

Current Behavior

The inline result of a query on the input line is the same font color/weight/opacity as the query itself.

Expected Behavior

I would expect the result to have a lesser hierarchy visually, for example by making it more transparent than the query or by changing its color.

j0hnm4r5 commented 20 hours ago

Screenshot from 2024-11-13 09-24-34 Screenshot from 2024-11-13 09-24-24

ManuelSchneid3r commented 20 hours ago

Is that "default dark"?

here:

Bildschirmfoto 2024-11-13 um 15 53 52
j0hnm4r5 commented 20 hours ago

Yes, but it does the same thing with every theme.

Screenshot from 2024-11-13 09-55-13 Screenshot from 2024-11-13 09-55-06 Screenshot from 2024-11-13 09-54-59

If I had to guess, it's maybe a Wayland issue? Like it's just not rendering transparency there? You can see some weirdness with the shadows on the last screenshot too.

ManuelSchneid3r commented 20 hours ago

Is your system palette broken? https://github.com/albertlauncher/plugins/blob/main/widgetsboxmodel/src/inputline.cpp#L66 Uses placeholder role. the placeholder should not have the same color as text

ManuelSchneid3r commented 20 hours ago

I a ubuntu 24.04 vm image

check your palette. are other apps affected as well? does the system plugin settings (has a lot of placeholders) widget have the same issue?

j0hnm4r5 commented 20 hours ago

Any good way to check that? I tried changing the system theme to a bunch of different option, dark and light, to no avail.

Running this script returns #000000 for both the text and placeholder text:

import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QPalette

app = QApplication(sys.argv)
window = QWidget()

# Check the system color for placeholder text
placeholder_color = window.palette().placeholderText().color()
text_color = window.palette().text().color()
print("Placeholder text color:", placeholder_color.name())  # Outputs the hex color
print("Text color:", text_color.name())  # Outputs the hex color

window.show()
sys.exit(app.exec_())
ManuelSchneid3r commented 19 hours ago

This is a qt bug

https://bugreports.qt.io/browse/QTBUG-92199?jql=text%20~%20%22placeholder%20stylesheet%22

your 6.2.4 seems to be affected. i cant do anything here. time for a dist upgrade. regards