Base: Rename icon subdirectories by explicit app name
Renames widgets/ to hackstudio/, vbwidgets/ to visualbuilder/ and paintbrush/ to pixelpaint/.
|
@ -121,7 +121,7 @@ void ToolboxWidget::setup_tools()
|
||||||
button.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
button.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||||
button.set_preferred_size(0, 32);
|
button.set_preferred_size(0, 32);
|
||||||
button.set_checkable(true);
|
button.set_checkable(true);
|
||||||
button.set_icon(Gfx::Bitmap::load_from_file(String::format("/res/icons/paintbrush/%s.png", icon_name.to_string().characters())));
|
button.set_icon(Gfx::Bitmap::load_from_file(String::format("/res/icons/pixelpaint/%s.png", icon_name.to_string().characters())));
|
||||||
return button;
|
return button;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 1,005 B After Width: | Height: | Size: 1,005 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 711 B |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
|
@ -332,7 +332,7 @@ int main_impl(int argc, char** argv)
|
||||||
GUI::ActionGroup tool_actions;
|
GUI::ActionGroup tool_actions;
|
||||||
tool_actions.set_exclusive(true);
|
tool_actions.set_exclusive(true);
|
||||||
|
|
||||||
auto cursor_tool_action = GUI::Action::create_checkable("Cursor", Gfx::Bitmap::load_from_file("/res/icons/widgets/Cursor.png"), [&](auto&) {
|
auto cursor_tool_action = GUI::Action::create_checkable("Cursor", Gfx::Bitmap::load_from_file("/res/icons/hackstudio/Cursor.png"), [&](auto&) {
|
||||||
g_form_editor_widget->set_tool(make<CursorTool>(*g_form_editor_widget));
|
g_form_editor_widget->set_tool(make<CursorTool>(*g_form_editor_widget));
|
||||||
});
|
});
|
||||||
cursor_tool_action->set_checked(true);
|
cursor_tool_action->set_checked(true);
|
||||||
|
@ -341,7 +341,7 @@ int main_impl(int argc, char** argv)
|
||||||
form_widgets_toolbar.add_action(cursor_tool_action);
|
form_widgets_toolbar.add_action(cursor_tool_action);
|
||||||
|
|
||||||
GUI::WidgetClassRegistration::for_each([&](const GUI::WidgetClassRegistration& reg) {
|
GUI::WidgetClassRegistration::for_each([&](const GUI::WidgetClassRegistration& reg) {
|
||||||
auto icon_path = String::format("/res/icons/widgets/G%s.png", reg.class_name().characters());
|
auto icon_path = String::format("/res/icons/hackstudio/G%s.png", reg.class_name().characters());
|
||||||
auto action = GUI::Action::create_checkable(reg.class_name(), Gfx::Bitmap::load_from_file(icon_path), [®](auto&) {
|
auto action = GUI::Action::create_checkable(reg.class_name(), Gfx::Bitmap::load_from_file(icon_path), [®](auto&) {
|
||||||
g_form_editor_widget->set_tool(make<WidgetTool>(*g_form_editor_widget, reg));
|
g_form_editor_widget->set_tool(make<WidgetTool>(*g_form_editor_widget, reg));
|
||||||
auto widget = reg.construct();
|
auto widget = reg.construct();
|
||||||
|
|
|
@ -111,7 +111,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& label_button = widget.add<GUI::Button>();
|
auto& label_button = widget.add<GUI::Button>();
|
||||||
label_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
label_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
label_button.set_tooltip("GLabel");
|
label_button.set_tooltip("GLabel");
|
||||||
label_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/label.png"));
|
label_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/label.png"));
|
||||||
label_button.on_click = [](auto) {
|
label_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GLabel);
|
form->insert_widget(VBWidgetType::GLabel);
|
||||||
|
@ -120,7 +120,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& button_button = widget.add<GUI::Button>();
|
auto& button_button = widget.add<GUI::Button>();
|
||||||
button_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
button_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
button_button.set_tooltip("GButton");
|
button_button.set_tooltip("GButton");
|
||||||
button_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/button.png"));
|
button_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/button.png"));
|
||||||
button_button.on_click = [](auto) {
|
button_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GButton);
|
form->insert_widget(VBWidgetType::GButton);
|
||||||
|
@ -128,7 +128,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& spinbox_button = widget.add<GUI::Button>();
|
auto& spinbox_button = widget.add<GUI::Button>();
|
||||||
spinbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
spinbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
spinbox_button.set_tooltip("GSpinBox");
|
spinbox_button.set_tooltip("GSpinBox");
|
||||||
spinbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/spinbox.png"));
|
spinbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/spinbox.png"));
|
||||||
spinbox_button.on_click = [](auto) {
|
spinbox_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GSpinBox);
|
form->insert_widget(VBWidgetType::GSpinBox);
|
||||||
|
@ -136,7 +136,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& editor_button = widget.add<GUI::Button>();
|
auto& editor_button = widget.add<GUI::Button>();
|
||||||
editor_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
editor_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
editor_button.set_tooltip("GTextEditor");
|
editor_button.set_tooltip("GTextEditor");
|
||||||
editor_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/textbox.png"));
|
editor_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/textbox.png"));
|
||||||
editor_button.on_click = [](auto) {
|
editor_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GTextEditor);
|
form->insert_widget(VBWidgetType::GTextEditor);
|
||||||
|
@ -144,7 +144,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& progress_bar_button = widget.add<GUI::Button>();
|
auto& progress_bar_button = widget.add<GUI::Button>();
|
||||||
progress_bar_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
progress_bar_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
progress_bar_button.set_tooltip("GProgressBar");
|
progress_bar_button.set_tooltip("GProgressBar");
|
||||||
progress_bar_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/progressbar.png"));
|
progress_bar_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/progressbar.png"));
|
||||||
progress_bar_button.on_click = [](auto) {
|
progress_bar_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GProgressBar);
|
form->insert_widget(VBWidgetType::GProgressBar);
|
||||||
|
@ -152,7 +152,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& slider_button = widget.add<GUI::Button>();
|
auto& slider_button = widget.add<GUI::Button>();
|
||||||
slider_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
slider_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
slider_button.set_tooltip("GSlider");
|
slider_button.set_tooltip("GSlider");
|
||||||
slider_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/slider.png"));
|
slider_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/slider.png"));
|
||||||
slider_button.on_click = [](auto) {
|
slider_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GSlider);
|
form->insert_widget(VBWidgetType::GSlider);
|
||||||
|
@ -160,7 +160,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& checkbox_button = widget.add<GUI::Button>();
|
auto& checkbox_button = widget.add<GUI::Button>();
|
||||||
checkbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
checkbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
checkbox_button.set_tooltip("GCheckBox");
|
checkbox_button.set_tooltip("GCheckBox");
|
||||||
checkbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/checkbox.png"));
|
checkbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/checkbox.png"));
|
||||||
checkbox_button.on_click = [](auto) {
|
checkbox_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GCheckBox);
|
form->insert_widget(VBWidgetType::GCheckBox);
|
||||||
|
@ -176,7 +176,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& scrollbar_button = widget.add<GUI::Button>();
|
auto& scrollbar_button = widget.add<GUI::Button>();
|
||||||
scrollbar_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
scrollbar_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
scrollbar_button.set_tooltip("GScrollBar");
|
scrollbar_button.set_tooltip("GScrollBar");
|
||||||
scrollbar_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/scrollbar.png"));
|
scrollbar_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/scrollbar.png"));
|
||||||
scrollbar_button.on_click = [](auto) {
|
scrollbar_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GScrollBar);
|
form->insert_widget(VBWidgetType::GScrollBar);
|
||||||
|
@ -184,7 +184,7 @@ RefPtr<GUI::Window> make_toolbox_window()
|
||||||
auto& groupbox_button = widget.add<GUI::Button>();
|
auto& groupbox_button = widget.add<GUI::Button>();
|
||||||
groupbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
groupbox_button.set_button_style(Gfx::ButtonStyle::CoolBar);
|
||||||
groupbox_button.set_tooltip("GGroupBox");
|
groupbox_button.set_tooltip("GGroupBox");
|
||||||
groupbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/vbwidgets/groupbox.png"));
|
groupbox_button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/visualbuilder/groupbox.png"));
|
||||||
groupbox_button.on_click = [](auto) {
|
groupbox_button.on_click = [](auto) {
|
||||||
if (auto* form = VBForm::current())
|
if (auto* form = VBForm::current())
|
||||||
form->insert_widget(VBWidgetType::GGroupBox);
|
form->insert_widget(VBWidgetType::GGroupBox);
|
||||||
|
|