diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-17 20:20:54 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-17 20:21:04 +0200 |
| commit | 9bdc7139daef8d9dc7b7e06503cd810d44b6d69c (patch) | |
| tree | bd4fb30d1a2c539a3eb530eb14d1780a9e04db78 /fluid/function_panel.cxx | |
| parent | 9794d200b33b438feaf76c960e464b90dd911d58 (diff) | |
FLUID: better initial sizes for buttons and windows
Diffstat (limited to 'fluid/function_panel.cxx')
| -rw-r--r-- | fluid/function_panel.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index 9200e231a..9a0039f0c 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -753,12 +753,20 @@ Fl_Window* make_widgetbin() { o->callback((Fl_Callback*)type_make_cb, (void*)("CodeBlock")); o->image(pixmap[Fl_Type::ID::CodeBlock]); } // Fl_Button* o - { Fl_Button* o = new Fl_Button(55, 46, 24, 24); + { Widget_Bin_Window_Button* o = new Widget_Bin_Window_Button(55, 46, 24, 24); o->tooltip("Widget Class"); o->box(FL_THIN_UP_BOX); + o->color(FL_BACKGROUND_COLOR); + o->selection_color(FL_BACKGROUND_COLOR); + o->labeltype(FL_NORMAL_LABEL); + o->labelfont(0); + o->labelsize(14); + o->labelcolor(FL_FOREGROUND_COLOR); o->callback((Fl_Callback*)type_make_cb, (void*)("widget_class")); + o->align(Fl_Align(FL_ALIGN_CENTER)); + o->when(FL_WHEN_RELEASE); o->image(pixmap[Fl_Type::ID::Widget_Class]); - } // Fl_Button* o + } // Widget_Bin_Window_Button* o { Fl_Button* o = new Fl_Button(5, 71, 24, 24); o->tooltip("Declaration"); o->box(FL_THIN_UP_BOX); |
