diff options
author | akshay-c | 2018-11-14 12:03:36 +0530 |
---|---|---|
committer | akshay-c | 2018-11-14 12:03:36 +0530 |
commit | dcc621a1b1e0a3425905a18fd665b21df8efcbd5 (patch) | |
tree | 3f38efcc094d196d18b0fff4f4776fa5e3f12141 /ldmicro | |
parent | 02cf9f96ddc43a1dae874b1a51f8135579b2248d (diff) | |
download | LDMicroGtk-dcc621a1b1e0a3425905a18fd665b21df8efcbd5.tar.gz LDMicroGtk-dcc621a1b1e0a3425905a18fd665b21df8efcbd5.tar.bz2 LDMicroGtk-dcc621a1b1e0a3425905a18fd665b21df8efcbd5.zip |
Background Color Optimized
Diffstat (limited to 'ldmicro')
-rw-r--r-- | ldmicro/ldmicro.cpp | 8 | ||||
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.cpp | 4 | ||||
-rw-r--r-- | ldmicro/maincontrols.cpp | 6 |
3 files changed, 10 insertions, 8 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index 56ac038..c41862c 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -853,8 +853,8 @@ gboolean LD_WM_Paint_call(HWID widget, HCRDC cr, gpointer data) if (Paint_call_first) { - gtk_widget_override_background_color(GTK_WIDGET(widget), - GTK_STATE_FLAG_NORMAL, (HBRUSH)GetStockObject(BLACK_BRUSH)); + //gtk_widget_override_background_color(GTK_WIDGET(widget), + // GTK_STATE_FLAG_NORMAL, (HBRUSH)GetStockObject(BLACK_BRUSH)); gint width = gtk_widget_get_allocated_width (widget); gint height = gtk_widget_get_allocated_height (widget); @@ -1253,8 +1253,8 @@ int main(int argc, char** argv) gtk_window_set_default_size (GTK_WINDOW(MainWindow), 800, 600); gtk_window_resize (GTK_WINDOW(MainWindow), 800, 600); gtk_window_move(GTK_WINDOW(MainWindow), 10, 10); - gtk_widget_override_background_color(GTK_WIDGET(MainWindow), - GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(BLACK_BRUSH))); + /*gtk_widget_override_background_color(GTK_WIDGET(MainWindow), + GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(BLACK_BRUSH)));*/ gtk_window_set_default_icon(LoadImage(Instance, LDMICRO_ICON, IMAGE_ICON, 32, 32, 0)); gtk_window_set_icon(GTK_WINDOW(MainWindow), LoadImage(Instance, LDMICRO_ICON, diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 64f7690..0f6d09b 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -333,8 +333,8 @@ void SetBkColor(HWID widget, HCRDC hcr, COLORREF bkCol) if (hcr == NULL) return; - gtk_widget_override_background_color(GTK_WIDGET(widget), - GTK_STATE_FLAG_NORMAL, &bkCol); + /*gtk_widget_override_background_color(GTK_WIDGET(widget), + GTK_STATE_FLAG_NORMAL, &bkCol);*/ gint width = gtk_widget_get_allocated_width (widget); gint height = gtk_widget_get_allocated_height (widget); diff --git a/ldmicro/maincontrols.cpp b/ldmicro/maincontrols.cpp index 3391d1e..9974f2e 100644 --- a/ldmicro/maincontrols.cpp +++ b/ldmicro/maincontrols.cpp @@ -615,10 +615,12 @@ void MakeMainWindowControls(void) /// Grid for status bars HWID StatusGrid = gtk_grid_new(); - gtk_widget_override_background_color(GTK_WIDGET(StatusGrid), + gtk_widget_override_background_color(GTK_WIDGET(ViewPortMenu), + GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(BLACK_BRUSH))); + /*gtk_widget_override_background_color(GTK_WIDGET(StatusGrid), GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(DKGRAY_BRUSH))); gtk_widget_override_background_color(GTK_WIDGET(view), - GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(WHITE_BRUSH))); + GTK_STATE_FLAG_NORMAL, ((HBRUSH)GetStockObject(WHITE_BRUSH)));*/ /// Creating Status Bar 1 and attaching to grid StatusBar[0] = gtk_statusbar_new(); |