mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
tools: Standardize MyPaint Brush tool layout
MyPaint Brushes have their own custom sliders for brush options, so they were displayed lower in the dockable compared to other paint tools like Pencil and Paintbrush. This patch moves them up so options are in the same place across all standard paint tools.
This commit is contained in:
parent
8c14e432b7
commit
d83d5929ad
1 changed files with 23 additions and 16 deletions
|
@ -52,11 +52,33 @@ gimp_mybrush_options_gui (GimpToolOptions *tool_options)
|
||||||
GtkWidget *combo_box;
|
GtkWidget *combo_box;
|
||||||
GtkWidget *frame;
|
GtkWidget *frame;
|
||||||
|
|
||||||
|
/* Since MyPaint Brushes have their own custom sliders for brush options,
|
||||||
|
* we'll need to shift them up to match the layout of other brushes */
|
||||||
|
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE, FALSE, 0);
|
||||||
|
gtk_widget_set_visible (vbox2, TRUE);
|
||||||
|
gtk_box_reorder_child (GTK_BOX (vbox), vbox2, 2);
|
||||||
|
|
||||||
/* the brush */
|
/* the brush */
|
||||||
button = gimp_prop_mybrush_box_new (NULL, GIMP_CONTEXT (tool_options),
|
button = gimp_prop_mybrush_box_new (NULL, GIMP_CONTEXT (tool_options),
|
||||||
_("Brush"), 2,
|
_("Brush"), 2,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
/* radius */
|
||||||
|
scale = gimp_prop_spin_scale_new (config, "radius",
|
||||||
|
0.1, 1.0, 2);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox2), scale, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
/* opaque */
|
||||||
|
scale = gimp_prop_spin_scale_new (config, "opaque",
|
||||||
|
0.1, 1.0, 2);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox2), scale, FALSE, FALSE, 0);
|
||||||
|
|
||||||
|
/* hardness */
|
||||||
|
scale = gimp_prop_spin_scale_new (config, "hardness",
|
||||||
|
0.1, 1.0, 2);
|
||||||
|
gtk_box_pack_start (GTK_BOX (vbox2), scale, FALSE, FALSE, 0);
|
||||||
|
|
||||||
/* erase mode */
|
/* erase mode */
|
||||||
scale = gimp_prop_check_button_new (config, "eraser", NULL);
|
scale = gimp_prop_check_button_new (config, "eraser", NULL);
|
||||||
|
@ -66,21 +88,6 @@ gimp_mybrush_options_gui (GimpToolOptions *tool_options)
|
||||||
scale = gimp_prop_check_button_new (config, "no-erasing", NULL);
|
scale = gimp_prop_check_button_new (config, "no-erasing", NULL);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
||||||
|
|
||||||
/* radius */
|
|
||||||
scale = gimp_prop_spin_scale_new (config, "radius",
|
|
||||||
0.1, 1.0, 2);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
|
||||||
|
|
||||||
/* opaque */
|
|
||||||
scale = gimp_prop_spin_scale_new (config, "opaque",
|
|
||||||
0.1, 1.0, 2);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
|
||||||
|
|
||||||
/* hardness */
|
|
||||||
scale = gimp_prop_spin_scale_new (config, "hardness",
|
|
||||||
0.1, 1.0, 2);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 0);
|
|
||||||
|
|
||||||
/* Expand layer options */
|
/* Expand layer options */
|
||||||
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
|
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue