@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); for (int i = 0; i < itemCount; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); for (int i = 0; i < itemCount; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); for (int i = 0; i < itemCount; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); ToolItem [] items = getItems (); for (int i = 0; i < items.length; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); ToolItem [] items = getItems (); for (int i = 0; i < items.length; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); TabItem [] items = getItems (); for (int i = 0; i < items.length; i++) { if (items[i] != null) { items[i].setForegroundColor (color); } } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); TabItem [] items = getItems (); for (int i = 0; i < items.length; i++) { if (items[i] != null) { items[i].setForegroundColor (color); } } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); ToolItem [] items = getItems (); for (int i = 0; i < items.length; i++) { items[i].setForegroundColor (color); } }
@Override void setForegroundColor (GdkColor color) { super.setForegroundColor (color); TabItem [] items = getItems (); for (int i = 0; i < items.length; i++) { if (items[i] != null) { items[i].setForegroundColor (color); } } }
@Override void setForegroundColor (long /*int*/ handle, GdkRGBA rgba) { /* For CSS foreground colors (GTK3.16+) we need to make sure the default * background color stays set if no background color is specified. If no * background color has been set, set cssBackground to be COLOR_WIDGET_BACKGROUND. */ if (cssBackground == null) { GdkRGBA defaultBackground = display.toGdkRGBA (display.COLOR_WIDGET_BACKGROUND); cssBackground = "SwtFixed {background-color: " + display.gtk_rgba_to_css_string(defaultBackground) + ";}"; } super.setForegroundColor (handle, rgba); }
@Override void setForegroundColor (int /*long*/ handle, GdkRGBA rgba) { /* For CSS foreground colors (GTK3.16+) we need to make sure the default * background color stays set if no background color is specified. If no * background color has been set, set cssBackground to be COLOR_WIDGET_BACKGROUND. */ if (cssBackground == null) { GdkRGBA defaultBackground = display.toGdkRGBA (display.COLOR_WIDGET_BACKGROUND); cssBackground = "SwtFixed {background-color: " + display.gtk_rgba_to_css_string(defaultBackground) + ";}"; } super.setForegroundColor (handle, rgba); }
@Override void setForegroundColor (int /*long*/ handle, GdkRGBA rgba) { /* For CSS foreground colors (GTK3.16+) we need to make sure the default * background color stays set if no background color is specified. If no * background color has been set, set cssBackground to be COLOR_WIDGET_BACKGROUND. */ if (cssBackground == null) { GdkRGBA defaultBackground = display.toGdkRGBA (display.COLOR_WIDGET_BACKGROUND); cssBackground = "SwtFixed {background-color: " + display.gtk_rgba_to_css_string(defaultBackground) + ";}"; } super.setForegroundColor (handle, rgba); }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } /* * When using CSS, setting the foreground color on an empty label * widget prevents the background from being set. If a user wants * to specify a foreground color before the text is set, store the * color and wait until text is specified to apply it. */ if (text.isEmpty()) { foreground = rgba; } else { setForegroundColor (labelHandle, rgba); foreground = rgba; } } else { super.setForegroundColor (color); setForegroundColor(labelHandle, color); } }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } /* * When using CSS, setting the foreground color on an empty label * widget prevents the background from being set. If a user wants * to specify a foreground color before the text is set, store the * color and wait until text is specified to apply it. */ if (text.isEmpty()) { foreground = rgba; } else { setForegroundColor (labelHandle, rgba); foreground = rgba; } } else { super.setForegroundColor (color); setForegroundColor(labelHandle, color); } }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } /* * When using CSS, setting the foreground color on an empty label * widget prevents the background from being set. If a user wants * to specify a foreground color before the text is set, store the * color and wait until text is specified to apply it. */ if (text.isEmpty()) { foreground = rgba; } else { setForegroundColor (labelHandle, rgba); foreground = rgba; } } else { super.setForegroundColor (color); setForegroundColor(labelHandle, color); } }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } if (entryHandle != 0) { setForegroundColor (entryHandle, rgba); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { super.setForegroundColor (handle, color, false); if (entryHandle != 0) { setForegroundColor (entryHandle, color, false); } if (OS.GTK3) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { OS.g_object_set (textRenderer, OS.foreground_gdk, color, 0); } } }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } if (entryHandle != 0) { setForegroundColor (entryHandle, rgba); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { super.setForegroundColor (handle, color, false); if (entryHandle != 0) { setForegroundColor (entryHandle, color, false); } if (OS.GTK3) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { OS.g_object_set (textRenderer, OS.foreground_gdk, color, 0); } } }
@Override void setForegroundColor (GdkColor color) { if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } if (entryHandle != 0) { setForegroundColor (entryHandle, rgba); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { super.setForegroundColor (handle, color, false); if (entryHandle != 0) { setForegroundColor (entryHandle, color, false); } if (OS.GTK3) { GdkRGBA rgba = null; if (color != null) { rgba = display.toGdkRGBA (color); } OS.g_object_set (textRenderer, OS.foreground_rgba, rgba, 0); } else { OS.g_object_set (textRenderer, OS.foreground_gdk, color, 0); } } }