[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3122: TextEditor auto-adapting colors does not account for alpha


http://gambaswiki.org/bugtracker/edit?object=BUG.3122&from=L21haW4-

Bruce STEERS reported a new bug.

Summary
-------

TextEditor auto-adapting colors does not account for alpha

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : GUI components


Description
-----------

Using alpha to give a TextEditor background transparency does not account for what is behind the editor and it's causing me problems.

When alpha is set the Luminance becomes lower, but if a light panel is behind it the area is still light and the auto-adapting text is confused.

I would really like a way to just disable ANY auto-color adapting. I don't like it and don't want it because it breaks my application. 
I have a theme editor in my application that is now really not working after the last commit. seems i was somehow bypassing the auto-adapt routines but now the theme editor is just crazy and doing it's own thing despite my settings.

The auto-adapting makes being able to set your own highlight colors useless, You might get the color you choose or something different depending on what your auto-adapting code wants to do..
I expect if i implicitly set the colors that's what i should get.

The issue with the transparency would not be an issue if the colors did not auto-change and remained as i set them.

Please do not consider the solution to be disabling the ability to set alpha on texteditor background.
I think it looks lovely, in my editor i use gradients on the main Form background then alpha on the editor to let it show through. (see picture)

If you cannot take the color of what's behind the editor into account when alpha is set then please offer a way to bypass any auto-text color adapting completely.
And if possible fix alpha not working with QT texteditor background.

Sorry to be a pain, but I thought the last commit was going to fix things but seems to have made things worse for me (all because of the auto-color adapting)
I've attached the program (it's new and not fully working) you can see it has a Theme editor but it's now a bit rubbish with alpha background.  yesterday it was okay.

Many thanks
Bruce


System information
------------------

[System]
Gambas=3.21.99 115cab550 (bruces-patched)
OperatingSystem=Linux
Distribution=Linux Mint 22.2 (Zara)
Kernel=6.14.0-37-generic
Architecture=x86_64
Cores=8
Memory=15839M
Language=en_GB.UTF-8
Platform=x11
Desktop=MATE
DesktopResolution=96
DesktopScale=10
WidgetTheme=proxy
Font=Ubuntu,14
DarkTheme=False
[Programs]
dpkg=Debian 'dpkg' package management program version 1.22.6 (amd64).
gcc=gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
git=git version 2.43.0
msgmerge=msgmerge (GNU gettext-tools) 0.21
[Libraries]
Cairo=libcairo.so.2.11800.0
Curl=libcurl.so.4.8.0
DBus=libdbus-1.so.3.32.4
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2409.32
GStreamer=libgstreamer-1.0.so.0.2402.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2409.32
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.134.0.0
QT5=libQt5Core.so.5.15.13
QT6=libQt6Core.so.6.4.2
RSvg=librsvg-2.so.2.50.0
SDL=libSDL2-2.0.so.0.3000.0
SQLite3=libsqlite3.so.0.8.6
[Environment]
CLUTTER_BACKEND=x11
COMPIZ_CONFIG_PROFILE=mint
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=mate
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=mate
GDM_LANG=en_GB
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK3_MODULES=xapp-gtk3-module
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=0
HOME=<home>
LANG=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LOGNAME=<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PAPERSIZE=a4
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_FONT_DPI=96
QT_LOGGING_RULES=*.debug=false
QT_QPA_PLATFORMTHEME=qt5ct
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1622,unix/<hostname>:/tmp/.ICE-unix/1622
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=/usr/bin/env
force_s3tc_enable=true



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----