开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Colorblind help.


 

I am color blind and the ft8 red and green li es look the same to me. How can I change my activity to a blue color? ?I have almost zero experience in code but wanting to learn.?
--
Joe McConnaughy
AG7XH


 

Hi Joe.

You can change the colors of the sBitx local and web interfaces. Here is a starting point.

To change the web interface:

  1. Look at??as an example.. You can change the text color by searching for the word "green" or "red" then change the values to better suit your needs. The file you need to change is located at home/pi/sbitx/web/style.css
  2. Make the changes you want and save then close the file
  3. Reopen the web link version sBitx

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}

float palette[][3] = {
{1,1,1}, // COLOR_SELECTED_TEXT? ?WHITE
{0,1,1}, // COLOR_TEXT? ?CYAN
{0.5,0.5,0.5}, //COLOR_TEXT_MUTED? ?GRAY
{1,1,0}, // COLOR_SELECTED_BOX? ?YELLOW
{0,0,0}, // COLOR_BACKGROUND? ?BLACK
{1,1,0}, //COLOR_FREQ? ?YELLOW
{1,0,1}, //COLOR_LABEL? ?MAGENTA
//spectrum
{0,0,0}, //SPECTRUM_BACKGROUND? ?BLACK
{0.1, 0.1, 0.1}, //SPECTRUM_GRID? ?DARK GRAY
{1,1,0}, //SPECTRUM_PLOT? ?YELLOW
{0.2,0.2,0.2}, //SPECTRUM_NEEDLE? ?DARKER GRAY
{0.5,0.5,0.5}, //COLOR_CONTROL_BOX? ?GRAY
{0.2, 0.2, 0.2}, //SPECTRUM_BANDWIDTH? ?DARKER GRAY
{0,1,0}, //COLOR_RX__PITCH? ?GREEN
{0.1, 0.1, 0.2}, //SELECTED_LINE? ?DARK BLUE
{0.1, 0.1, 0.2}, // COLOR_FIELD_SELECTED? ?DARK BLUE
{1,0,0}, //COLOR_TX_PITCH? ?RED
After you are finished modifying the file, save and close it. Then open terminal and run:

cd sbitx
./build sbitx

I hope this helps!


-JJ
?


 

I forgot another key area.. Let me get that to you in my next post.. Sorry.


 

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


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?image0.jpeg
--
Ben Weiss
http://LionsLair.com
Clearlake, CA

On Feb 2, 2024, at 3:17?PM, JJ - W9JES <w9jes@...> wrote:

?I forgot another key area.. Let me get that to you in my next post.. Sorry.


 

Hi Ben.

The same as above except change the values after MONO and ARIAL. I've made the values to change in BOLD

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},

};


You could also try sBITX Manager alongside the transceiver as well. I've added provisions to make the key, text areas larger.??



-JJ