fixes #1395 Remove command to set icon size to small after toolbar customization. Add instructions to css file to affect toolbar icon sizes.

presentation
JJones780 7 years ago
parent 7a728c6453
commit ab0d93584d
  1. 1
      src/gui/dialog/toolbarCustomize/ToolbarAdapter.cpp
  2. 30
      ui/xournalpp.css

@ -133,7 +133,6 @@ void ToolbarAdapter::showToolbar()
gtk_widget_show(this->w);
GtkToolbar* tb = GTK_TOOLBAR(this->w);
gtk_toolbar_set_icon_size(tb, GTK_ICON_SIZE_SMALL_TOOLBAR);
GtkToolItem* it = gtk_tool_item_new();
this->spacerItem = it;

@ -1,5 +1,10 @@
/*
* Backup before modifying
*
*
* Try running Xournal++ like this: GTK_DEBUG=interactive xournalpp
*
* See: https://wiki.gnome.org/action/show/Projects/GTK/Inspector
*/
@ -41,3 +46,28 @@ GtkToolItem>GtkBox>GtkLabel+GtkLabel+GtkButton
box-shadow:none;
background-image:none
}
/* If you want to change the size of toolbar buttons try these:
* All toolbars:
*/
/*
GtkToolbar GtkButton
{
padding: 2
}
*/
/* Or for individual toolbars: tbLeft1 tbLeft2 tbTop1 tbTop2 tbBottom1 tbFloat4 etc:
*/
/*
#tbLeft2 GtkButton
{
padding: 2
}
*/

Loading…
Cancel
Save