PixelPaint+Base: Tool icon refresh :^)
Redraw and shrink all tool icons to 16x16 instead of the off-beat size (26x26) they had previously.
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 1,005 B After Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 232 B |
|
@ -73,14 +73,12 @@ ToolboxWidget::ToolboxWidget()
|
||||||
{
|
{
|
||||||
set_fill_with_background_color(true);
|
set_fill_with_background_color(true);
|
||||||
|
|
||||||
set_frame_thickness(1);
|
set_frame_thickness(0);
|
||||||
set_frame_shape(Gfx::FrameShape::Panel);
|
set_fixed_width(28);
|
||||||
set_frame_shadow(Gfx::FrameShadow::Raised);
|
|
||||||
|
|
||||||
set_fixed_width(48);
|
|
||||||
|
|
||||||
set_layout<GUI::VerticalBoxLayout>();
|
set_layout<GUI::VerticalBoxLayout>();
|
||||||
layout()->set_margins({ 4, 4, 4, 4 });
|
layout()->set_spacing(0);
|
||||||
|
layout()->set_margins({ 2, 2, 2, 2 });
|
||||||
|
|
||||||
m_action_group.set_exclusive(true);
|
m_action_group.set_exclusive(true);
|
||||||
m_action_group.set_unchecking_allowed(false);
|
m_action_group.set_unchecking_allowed(false);
|
||||||
|
@ -98,8 +96,9 @@ void ToolboxWidget::setup_tools()
|
||||||
m_tools.append(tool.ptr());
|
m_tools.append(tool.ptr());
|
||||||
auto& button = add<ToolButton>(*this, name, shortcut, move(tool));
|
auto& button = add<ToolButton>(*this, name, shortcut, move(tool));
|
||||||
button.set_focus_policy(GUI::FocusPolicy::TabFocus);
|
button.set_focus_policy(GUI::FocusPolicy::TabFocus);
|
||||||
button.set_fixed_height(32);
|
button.set_fixed_size(24, 24);
|
||||||
button.set_checkable(true);
|
button.set_checkable(true);
|
||||||
|
button.set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||||
button.set_icon(Gfx::Bitmap::load_from_file(String::formatted("/res/icons/pixelpaint/{}.png", icon_name)));
|
button.set_icon(Gfx::Bitmap::load_from_file(String::formatted("/res/icons/pixelpaint/{}.png", icon_name)));
|
||||||
return button;
|
return button;
|
||||||
};
|
};
|
||||||
|
|