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

Re: TestStyleColor



On Wed, 7 Jan 2026 at 16:18, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
wrote:
> Le 07/01/2026 à 17:04, Bruce Steers a écrit :
> > 
> > I think a better description of what Style.color does is needed. the 
> > wiki just says "Return or set the highlight color of the styled borders. 
> > "  and it sets much more than borders in my programs, many controls 
> > Backgrounds are adjusting to it and it's a bit ugly.
> > 
> 
> Actually "styled borders" draws inside the borders when 'Style.Flat' is 
> true. So the term is not very good in that case!
> 
> But the wiki description of 'Style.Color' is exact: that property is 
> used when you want to globally higlight the styled borders (and 
> backgrounds) with a specific color.
> 
> It is used by the IDE for highlighting the interface according to the 
> current git branch.
> 
> Yes, it is a bit ugly, but it's very useful when you work on tons of 
> branchs and projects.
> 
> Regards,
> 
> -- 
> Benoît Minisini.


Le mercredi 07 janvier 2026 à 18:05 +0000, Bruce Steers a écrit :
> Cheers Benoit, yes i figured it out when i read the difference is it either
> uses Paint.Stroke or Paint.Fill , then it all made sense.
> 
> I just added a little info to the wiki Style.Color page.
> 
> Respects
> BruceS


Hello,

first thanks for Gambas 3.21.2

I have read the replies you exchanged, Bruces and Benoît.

I added a checkbox for Style.Flat = True or False:

The attached application, in my opinion, does not correspond to what you added
to the wiki in:

https://gambaswiki.org/wiki/comp/gb.qt4/style/flat
and
https://gambaswiki.org/wiki/comp/gb.qt4/style/color

However, now that Style.Flat is True or False, the issue no longer occurs with
the gb.gtk3 and gb.qt5 components!

It only occurs with gb.qt6.

How is it that with gb.qt6, when the control has focus, the color is not
applied?

Modified project attached.

Regards.


[System]
Gambas=3.21.2 a2c2da0 (master)
OperatingSystem=Linux
Distribution=Ubuntu 24.04.3 LTS (Noble Numbat)
Kernel=6.8.0-90-generic
Architecture=x86_64
Cores=8
Memory=7817M
Language=fr_FR.UTF-8
Platform=x11
Desktop=MATE
DesktopResolution=96
DesktopScale=9
WidgetTheme=blackmate
Font=Ubuntu Mono,12
DarkTheme=True
[Programs]
appimage-builder=appimage-builder: 1.1.0
dpkg=Programme « dpkg » de gestion de paquets Debian 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
rpmbuild=RPM version 4.18.2
[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
Poppler=libpoppler.so.73.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]
COMPIZ_CONFIG_PROFILE=mate
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 
DEFAULTS_PATH=/usr/share/gconf/mate.default.path
DESKTOP_SESSION=mate
DISPLAY=:0
GB_GUI=gb.gtk3
GDMSESSION=mate
GDM_LANG=fr_FR
GIO_LAUNCHED_DESKTOP_FILE=<home>/Bureau/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=64154
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK3_MODULES=xapp-gtk3-module
GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
HOME=<home>
INSIDE_CAJA_PYTHON=
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PAPERSIZE=a4
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us
r/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_FONT_DPI=96
QT_LOGGING_RULES=*.debug=false
QT_PLATFORMTHEME=qt5ct
QT_PLATFORM_PLUGIN=qt5ct
QT_QPA_PLATFORMTHEME=qt5ct
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2407,unix/<hostname>:/tmp/.ICE-
unix/2407
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UBUNTU_MENUPROXY=1
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/usr/share/gnome:/usr/local/share:
/usr/share:/var/lib/snapd/desktop
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=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7

Attachment: TestStyleColor-0.0.1.tar.gz
Description: application/compressed-tar


Follow-Ups:
Re: TestStyleColorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: TestStyleColorBruce Steers <bsteers4@xxxxxxxxx>