GTK Theme Issues with XCTU on Linux

Hello everyone,

while using XCTU on Linux (Ubuntu 20.04.1, system GTK theme 'Yaru-dark'), I found out that the default GTK theme that is used in the launcher and in the .desktop file is not easy to read, as there are multiple white texts on clear backgrounds and black texts on darker backgrounds.

Screenshot from 2024-01-21 18-11-19

For reference, this is the .gtkrc-eclipse that comes with the latest version of XCTU :

style "compact" {
  GtkButton::default_border={0,0,0,0}
  GtkButton::default_outside_border={0,0,0,0}
  GtkButtonBox::child_min_width=0
  GtkButtonBox::child_min_heigth=0
  GtkButtonBox::child_internal_pad_x=0
  GtkButtonBox::child_internal_pad_y=0
  GtkMenu::vertical-padding=1
  GtkMenuBar::internal_padding=1
  GtkMenuItem::horizontal_padding=4
  GtkToolbar::internal-padding=0
  GtkToolbar::space-size=1
  GtkOptionMenu::indicator_size=0
  GtkOptionMenu::indicator_spacing=0
  GtkPaned::handle_size=4
  GtkRange::trough_border=0
  GtkRange::stepper_spacing=0
  GtkScale::value_spacing=0
  GtkScrolledWindow::scrollbar_spacing=0
  GtkExpander::expander_size=10
  GtkExpander::expander_spacing=0
  GtkTreeView::vertical-separator=0
  GtkTreeView::horizontal-separator=0
  GtkTreeView::expander-size=12
  GtkTreeView::fixed-height-mode=TRUE
  GtkWidget::focus_padding=0
  font_name="Liberation Sans,Sans Regular 9"
}
class "GtkWidget" style "compact"

style "compact2" {
  xthickness=1
  ythickness=1
}

class "GtkButton" style "compact2"
class "GtkToolbar" style "compact2"
class "GtkPaned" style "compact2"

style "combo-box-fix"
{
  GtkComboBox::appears-as-list = 0
}

widget_class "*.*" style "combo-box-fix"

gtk-menu-images=1
gtk-button-images=1

Here is another screenshot :

Screenshot from 2024-01-21 18-12-44

And another one :

Digi is getting ready to release a new version of the XBee Studio. I would suggest waiting for it and see if that addresses your issue or not.

Hi,

I have the same (even worse) problem (Linux Mint 22, dark theme). Texts were not visible at all. I found a solution by editing the “.gtkrc-eclipse” file.

style "compact" {
  GtkButton::default_border={0,0,0,0}
  GtkButton::default_outside_border={0,0,0,0}
  GtkButtonBox::child_min_width=0
  GtkButtonBox::child_min_heigth=0
  GtkButtonBox::child_internal_pad_x=0
  GtkButtonBox::child_internal_pad_y=0
  GtkMenu::vertical-padding=1
  GtkMenuBar::internal_padding=1
  GtkMenuItem::horizontal_padding=4
  GtkToolbar::internal-padding=0
  GtkToolbar::space-size=1
  GtkOptionMenu::indicator_size=0
  GtkOptionMenu::indicator_spacing=0
  GtkPaned::handle_size=4
  GtkRange::trough_border=0
  GtkRange::stepper_spacing=0
  GtkScale::value_spacing=0
  GtkScrolledWindow::scrollbar_spacing=0
  GtkExpander::expander_size=10
  GtkExpander::expander_spacing=0
  GtkTreeView::vertical-separator=0
  GtkTreeView::horizontal-separator=0
  GtkTreeView::expander-size=12
  GtkTreeView::fixed-height-mode=TRUE
  GtkWidget::focus_padding=0
  font_name="Liberation Sans,Sans Regular 9"
  fg[NORMAL] = { 0.5, 0.5, 0.5 }
  text[NORMAL] = {0.5, 0.5, 0.5}
}
class "GtkWidget" style "compact"

After inserting the lines above :