diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-03-18 17:33:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-18 17:33:27 +0100 |
| commit | 5c482f9d9b357e098f955351f425bc985254ff28 (patch) | |
| tree | c410588ac915886aea4bef3478a12d682bb5ad9f /fluid/factory.cxx | |
| parent | a9fb6a979fbcf31c2405d61ea720879bd5507d02 (diff) | |
Fix and update alignment #346 (#701)
* interactive layout alignment rewritten
* interface for new alignment rules
* new alignment dialog box
* user defined layout rules added
* layout rules can be stored in projects, settings, and external files
* Valgrind verification
Diffstat (limited to 'fluid/factory.cxx')
| -rw-r--r-- | fluid/factory.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 551d2b11e..a58648261 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -27,6 +27,7 @@ #include "fluid.h" #include "Fl_Window_Type.h" #include "Fl_Group_Type.h" +#include "Fd_Snap_Action.h" #include "pixmaps.h" #include "undo.h" @@ -1064,12 +1065,14 @@ Fl_Type *add_new_widget_from_user(Fl_Type *inPrototype, Strategy strategy) { Fl_Widget_Type *wt = (Fl_Widget_Type *)t; // Set font sizes... - wt->o->labelsize(Fl_Widget_Type::default_size); + wt->o->labelsize(layout->labelsize); + wt->o->labelfont(layout->labelfont); - Fl_Font f; - int s = Fl_Widget_Type::default_size; + Fl_Font f = layout->textfont; + int s = layout->textsize; Fl_Color c; + wt->textstuff(1, f, s, c); wt->textstuff(2, f, s, c); // Resize and/or reposition new widget... |
