mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 18:50:19 +00:00
- Added a shared XTextColor definition and a palette conversion helper for Cairo-ready colors, decoupling renderer palettes from GdkColor usage in the API surface.
- Updated xtext palette APIs to accept internal color arrays directly for rendering setup. - Wired xtext palette creation through UI entry points to use the new palette helper when constructing or refreshing text views.
This commit is contained in:
20
src/fe-gtk/xtext-color.h
Normal file
20
src/fe-gtk/xtext-color.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* ZoiteChat
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef HEXCHAT_XTEXT_COLOR_H
|
||||
#define HEXCHAT_XTEXT_COLOR_H
|
||||
|
||||
typedef struct
|
||||
{
|
||||
double red;
|
||||
double green;
|
||||
double blue;
|
||||
double alpha;
|
||||
} XTextColor;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user