summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-31 02:05:35 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 02:05:35 +0100
commit34d458d111731e4cdd990ac92eef788d76f9fee1 (patch)
tree5216cca698afbc5ec5ced037466235af8579f691 /Applications
parent412a91d58f8396d76a6f56b4265c406d1bfd4331 (diff)
downloadserenity-34d458d111731e4cdd990ac92eef788d76f9fee1.zip
PixelPaint: Don't focus toolbox buttons on click
Diffstat (limited to 'Applications')
-rw-r--r--Applications/PixelPaint/ToolboxWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/PixelPaint/ToolboxWidget.cpp b/Applications/PixelPaint/ToolboxWidget.cpp
index ee9b86024c..c746901887 100644
--- a/Applications/PixelPaint/ToolboxWidget.cpp
+++ b/Applications/PixelPaint/ToolboxWidget.cpp
@@ -118,6 +118,7 @@ void ToolboxWidget::setup_tools()
auto add_tool = [&](const StringView& name, const StringView& icon_name, const GUI::Shortcut& shortcut, NonnullOwnPtr<Tool> tool) -> ToolButton& {
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_checkable(true);
button.set_icon(Gfx::Bitmap::load_from_file(String::formatted("/res/icons/pixelpaint/{}.png", icon_name)));