Keyboard Shortcuts
Likes
Search
Colorblind help.
Hi Ben. The same as above except change the values after MONO and ARIAL. I've made the values to change in BOLD
-JJ |
Ben Weiss
¿ªÔÆÌåÓýAnd while we¡¯re on the subject, I¡¯m legally blind and plugged in an external monitor, but sadly, whichever were used to draw on the screen cleverly arrange things rather than make stuff bigger.How can I increase the font size? -- Ben Weiss http://LionsLair.com Clearlake, CAOn Feb 2, 2024, at 3:17?PM, JJ - W9JES <w9jes@...> wrote:
|
I hit the send button too soon.. Anyway, here is the rest of the file where changes are needed..
I've highlighted the areas in bold that could affect RED/GREEN colorblindness. They are in RGB saturation format where?0?is NO color and?1?is 100% color. The format is?{RED,GREEN,BLUE}.?For example, if you want pure gray, the the entry is?{0.5,0.5,0.5} struct font_style font_table[] = {
{FONT_FIELD_LABEL, 0, 1, 1, "Mono", 14, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FIELD_VALUE, 1, 1, 1, "Mono", 14, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_LARGE_FIELD, 0, 1, 1, "Mono", 14, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_LARGE_VALUE, 1, 1, 1, "Arial", 24, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_SMALL, 0, 1, 1, "Mono", 10, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_LOG, 1, 1, 1, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FT8_RX, 0, 1, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FT8_TX, 1, 0.6, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_SMALL_FIELD_VALUE, 1, 1, 1, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_CW_RX, 0, 1, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_CW_TX, 1, 0.6, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FLDIGI_RX, 0, 1, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FLDIGI_TX, 1, 0.6, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_TELNET, 0, 1, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FT8_QUEUED, 0.5, 0.5, 0.5, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
{FONT_FT8_REPLY, 1, 0.6, 0, "Mono", 11, CAIRO_FONT_WEIGHT_NORMAL, CAIRO_FONT_SLANT_NORMAL},
}; -JJ |
Hi Joe.
You can change the colors of the sBitx local and web interfaces. Here is a starting point. To change the web interface:
To change the local interface: This involves a few more steps including recompiling the sBitx binary after modification. ?Here is where the colors are defined. The local file to change is /home/pi/sbitx/sbitx_gtk.c Here are the default color conditions for the file. They are in RGB saturation format where 0 is NO color and 1 is 100% color. The format is {RED,GREEN,BLUE}. For example, if you want pure gray, the the entry is {0.5,0.5,0.5} After you are finished modifying the file, save and close it. Then open terminal and run: cd sbitx I hope this helps! -JJ ? |