PixelPaint+Base: Tool icon refresh :^)

Redraw and shrink all tool icons to 16x16 instead of the off-beat size
(26x26) they had previously.
This commit is contained in:
Andreas Kling 2021-05-15 18:22:17 +02:00
parent 8a4cc735b9
commit ae7c5411a6
Notes: sideshowbarker 2024-07-18 18:06:12 +09:00
12 changed files with 6 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 980 B

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,005 B

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 B

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 232 B

View file

@ -73,14 +73,12 @@ ToolboxWidget::ToolboxWidget()
{
set_fill_with_background_color(true);
set_frame_thickness(1);
set_frame_shape(Gfx::FrameShape::Panel);
set_frame_shadow(Gfx::FrameShadow::Raised);
set_fixed_width(48);
set_frame_thickness(0);
set_fixed_width(28);
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_unchecking_allowed(false);
@ -98,8 +96,9 @@ void ToolboxWidget::setup_tools()
m_tools.append(tool.ptr());
auto& button = add<ToolButton>(*this, name, shortcut, move(tool));
button.set_focus_policy(GUI::FocusPolicy::TabFocus);
button.set_fixed_height(32);
button.set_fixed_size(24, 24);
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)));
return button;
};