Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
4a996ded by wurstsalat at 2024-11-08T19:05:49+01:00
fix: Fix setting RGBA in get_color_for_account
Setting red, green, blue in init is deprecated and does not work.
Alpha needs to be set, otherwise it is 0 (transparent)
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -318,7 +318,11 @@ def get_contact_color(contact: types.ChatContactT) ->
tuple[float, float, float]
def get_color_for_account(account: str) -> str:
col_r, col_g, col_b = text_to_color(account)
- rgba = Gdk.RGBA(red=col_r, green=col_g, blue=col_b)
+ rgba = Gdk.RGBA()
+ rgba.red = col_r
+ rgba.green = col_g
+ rgba.blue = col_b
+ rgba.alpha = 1
return rgba.to_string()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4a996ded82ee5c609873a3dd518ad2e391bab28f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4a996ded82ee5c609873a3dd518ad2e391bab28f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]