Base: Move 16x16 common icons to /res/icons/16x16/
Drops the '16' suffix from filenames. Resizes inconsistent audio-volume icons to intended size.
|
@ -47,10 +47,10 @@ ProcessModel::ProcessModel()
|
||||||
{
|
{
|
||||||
ASSERT(!s_the);
|
ASSERT(!s_the);
|
||||||
s_the = this;
|
s_the = this;
|
||||||
m_generic_process_icon = Gfx::Bitmap::load_from_file("/res/icons/gear16.png");
|
m_generic_process_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/gear.png");
|
||||||
m_high_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/highpriority16.png");
|
m_high_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/highpriority.png");
|
||||||
m_low_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/lowpriority16.png");
|
m_low_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/lowpriority.png");
|
||||||
m_normal_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/normalpriority16.png");
|
m_normal_priority_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/normalpriority.png");
|
||||||
|
|
||||||
auto file = Core::File::construct("/proc/cpuinfo");
|
auto file = Core::File::construct("/proc/cpuinfo");
|
||||||
if (file->open(Core::IODevice::ReadOnly)) {
|
if (file->open(Core::IODevice::ReadOnly)) {
|
||||||
|
|
|
@ -199,19 +199,19 @@ int main(int argc, char** argv)
|
||||||
return pid_index.data().to_i32();
|
return pid_index.data().to_i32();
|
||||||
};
|
};
|
||||||
|
|
||||||
auto kill_action = GUI::Action::create("Kill process", { Mod_Ctrl, Key_K }, Gfx::Bitmap::load_from_file("/res/icons/kill16.png"), [&](const GUI::Action&) {
|
auto kill_action = GUI::Action::create("Kill process", { Mod_Ctrl, Key_K }, Gfx::Bitmap::load_from_file("/res/icons/16x16/kill.png"), [&](const GUI::Action&) {
|
||||||
pid_t pid = selected_id(ProcessModel::Column::PID);
|
pid_t pid = selected_id(ProcessModel::Column::PID);
|
||||||
if (pid != -1)
|
if (pid != -1)
|
||||||
kill(pid, SIGKILL);
|
kill(pid, SIGKILL);
|
||||||
});
|
});
|
||||||
|
|
||||||
auto stop_action = GUI::Action::create("Stop process", { Mod_Ctrl, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/stop16.png"), [&](const GUI::Action&) {
|
auto stop_action = GUI::Action::create("Stop process", { Mod_Ctrl, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/stop-hand.png"), [&](const GUI::Action&) {
|
||||||
pid_t pid = selected_id(ProcessModel::Column::PID);
|
pid_t pid = selected_id(ProcessModel::Column::PID);
|
||||||
if (pid != -1)
|
if (pid != -1)
|
||||||
kill(pid, SIGSTOP);
|
kill(pid, SIGSTOP);
|
||||||
});
|
});
|
||||||
|
|
||||||
auto continue_action = GUI::Action::create("Continue process", { Mod_Ctrl, Key_C }, Gfx::Bitmap::load_from_file("/res/icons/continue16.png"), [&](const GUI::Action&) {
|
auto continue_action = GUI::Action::create("Continue process", { Mod_Ctrl, Key_C }, Gfx::Bitmap::load_from_file("/res/icons/16x16/continue.png"), [&](const GUI::Action&) {
|
||||||
pid_t pid = selected_id(ProcessModel::Column::PID);
|
pid_t pid = selected_id(ProcessModel::Column::PID);
|
||||||
if (pid != -1)
|
if (pid != -1)
|
||||||
kill(pid, SIGCONT);
|
kill(pid, SIGCONT);
|
||||||
|
|
|
@ -280,7 +280,7 @@ int main(int argc, char** argv)
|
||||||
perror("disown");
|
perror("disown");
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
app_menu.add_action(GUI::Action::create("Settings...", Gfx::Bitmap::load_from_file("/res/icons/gear16.png"),
|
app_menu.add_action(GUI::Action::create("Settings...", Gfx::Bitmap::load_from_file("/res/icons/16x16/gear.png"),
|
||||||
[&](const GUI::Action&) {
|
[&](const GUI::Action&) {
|
||||||
if (!settings_window) {
|
if (!settings_window) {
|
||||||
settings_window = create_settings_window(terminal);
|
settings_window = create_settings_window(terminal);
|
||||||
|
|
BIN
Base/res/icons/16x16/audio-volume-high.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
Base/res/icons/16x16/audio-volume-low.png
Normal file
After Width: | Height: | Size: 183 B |
BIN
Base/res/icons/16x16/audio-volume-medium.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
Base/res/icons/16x16/audio-volume-muted.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
Base/res/icons/16x16/audio-volume-zero.png
Normal file
After Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1,008 B After Width: | Height: | Size: 1,008 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 299 B |
|
@ -4,6 +4,6 @@ Demos=/res/icons/16x16/app-demo.png
|
||||||
#Games=
|
#Games=
|
||||||
#Graphics=
|
#Graphics=
|
||||||
#Internet=
|
#Internet=
|
||||||
Settings=/res/icons/gear16.png
|
Settings=/res/icons/16x16/gear.png
|
||||||
Sound=/res/icons/16x16/filetype-music.png
|
Sound=/res/icons/16x16/filetype-music.png
|
||||||
#Utilities=
|
#Utilities=
|
||||||
|
|
Before Width: | Height: | Size: 196 B |
Before Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 163 B |
|
@ -55,7 +55,7 @@ This is all possibly by using HackStudio, Visual Builder, Terminal, and the
|
||||||
(optional) GNU tools.
|
(optional) GNU tools.
|
||||||
|
|
||||||
* Multimedia
|
* Multimedia
|
||||||
$ /res/icons/audio-volume-medium.png
|
$ /res/icons/16x16/audio-volume-medium.png
|
||||||
> Draw while playing your favorite songs!
|
> Draw while playing your favorite songs!
|
||||||
Serenity includes the Piano, which allows you to create your own tunes by
|
Serenity includes the Piano, which allows you to create your own tunes by
|
||||||
simply pressing keys on the keyboard. You can pick the wavetype, octave, and
|
simply pressing keys on the keyboard. You can pick the wavetype, octave, and
|
||||||
|
|
|
@ -195,9 +195,9 @@ int main(int argc, char** argv)
|
||||||
button_vert2_container.set_layout<GUI::VerticalBoxLayout>();
|
button_vert2_container.set_layout<GUI::VerticalBoxLayout>();
|
||||||
|
|
||||||
auto& button1 = button_vert1_container.add<GUI::Button>("Button 1");
|
auto& button1 = button_vert1_container.add<GUI::Button>("Button 1");
|
||||||
button1.set_icon(Gfx::Bitmap::load_from_file("/res/icons/kill16.png"));
|
button1.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/kill.png"));
|
||||||
auto& button2 = button_vert1_container.add<GUI::Button>("Button 2");
|
auto& button2 = button_vert1_container.add<GUI::Button>("Button 2");
|
||||||
button2.set_icon(Gfx::Bitmap::load_from_file("/res/icons/kill16.png"));
|
button2.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/kill.png"));
|
||||||
button2.set_enabled(false);
|
button2.set_enabled(false);
|
||||||
auto& button3 = button_vert2_container.add<GUI::Button>("\xF0\x9F\x98\x88 Button 3");
|
auto& button3 = button_vert2_container.add<GUI::Button>("\xF0\x9F\x98\x88 Button 3");
|
||||||
(void)button3;
|
(void)button3;
|
||||||
|
|
|
@ -392,7 +392,7 @@ void Editor::clear_execution_position()
|
||||||
|
|
||||||
const Gfx::Bitmap& Editor::breakpoint_icon_bitmap()
|
const Gfx::Bitmap& Editor::breakpoint_icon_bitmap()
|
||||||
{
|
{
|
||||||
static auto bitmap = Gfx::Bitmap::load_from_file("/res/icons/breakpoint.png");
|
static auto bitmap = Gfx::Bitmap::load_from_file("/res/icons/16x16/breakpoint.png");
|
||||||
return *bitmap;
|
return *bitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ NonnullRefPtr<Action> make_copy_action(Function<void(Action&)> callback, Core::O
|
||||||
|
|
||||||
NonnullRefPtr<Action> make_paste_action(Function<void(Action&)> callback, Core::Object* parent)
|
NonnullRefPtr<Action> make_paste_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||||
{
|
{
|
||||||
return Action::create("Paste", { Mod_Ctrl, Key_V }, Gfx::Bitmap::load_from_file("/res/icons/paste16.png"), move(callback), parent);
|
return Action::create("Paste", { Mod_Ctrl, Key_V }, Gfx::Bitmap::load_from_file("/res/icons/16x16/paste.png"), move(callback), parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
NonnullRefPtr<Action> make_fullscreen_action(Function<void(Action&)> callback, Core::Object* parent)
|
NonnullRefPtr<Action> make_fullscreen_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||||
|
|
|
@ -129,7 +129,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Co
|
||||||
copy();
|
copy();
|
||||||
});
|
});
|
||||||
|
|
||||||
m_paste_action = GUI::Action::create("Paste", { Mod_Ctrl | Mod_Shift, Key_V }, Gfx::Bitmap::load_from_file("/res/icons/paste16.png"), [this](auto&) {
|
m_paste_action = GUI::Action::create("Paste", { Mod_Ctrl | Mod_Shift, Key_V }, Gfx::Bitmap::load_from_file("/res/icons/16x16/paste.png"), [this](auto&) {
|
||||||
paste();
|
paste();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -58,11 +58,11 @@ public:
|
||||||
update();
|
update();
|
||||||
};
|
};
|
||||||
|
|
||||||
m_volume_level_bitmaps.append({ 66, Gfx::Bitmap::load_from_file("/res/icons/audio-volume-high.png") });
|
m_volume_level_bitmaps.append({ 66, Gfx::Bitmap::load_from_file("/res/icons/16x16/audio-volume-high.png") });
|
||||||
m_volume_level_bitmaps.append({ 33, Gfx::Bitmap::load_from_file("/res/icons/audio-volume-medium.png") });
|
m_volume_level_bitmaps.append({ 33, Gfx::Bitmap::load_from_file("/res/icons/16x16/audio-volume-medium.png") });
|
||||||
m_volume_level_bitmaps.append({ 1, Gfx::Bitmap::load_from_file("/res/icons/audio-volume-low.png") });
|
m_volume_level_bitmaps.append({ 1, Gfx::Bitmap::load_from_file("/res/icons/16x16/audio-volume-low.png") });
|
||||||
m_volume_level_bitmaps.append({ 0, Gfx::Bitmap::load_from_file("/res/icons/audio-volume-zero.png") });
|
m_volume_level_bitmaps.append({ 0, Gfx::Bitmap::load_from_file("/res/icons/16x16/audio-volume-zero.png") });
|
||||||
m_volume_level_bitmaps.append({ 0, Gfx::Bitmap::load_from_file("/res/icons/audio-volume-muted.png") });
|
m_volume_level_bitmaps.append({ 0, Gfx::Bitmap::load_from_file("/res/icons/16x16/audio-volume-muted.png") });
|
||||||
|
|
||||||
m_slider_window = add<GUI::Window>(window());
|
m_slider_window = add<GUI::Window>(window());
|
||||||
m_slider_window->set_frameless(true);
|
m_slider_window->set_frameless(true);
|
||||||
|
|
|
@ -77,7 +77,7 @@ int main(int argc, char* argv[])
|
||||||
applet_window->set_title("ClipboardHistory");
|
applet_window->set_title("ClipboardHistory");
|
||||||
applet_window->set_window_type(GUI::WindowType::MenuApplet);
|
applet_window->set_window_type(GUI::WindowType::MenuApplet);
|
||||||
auto& icon = applet_window->set_main_widget<GUI::ImageWidget>();
|
auto& icon = applet_window->set_main_widget<GUI::ImageWidget>();
|
||||||
icon.load_from_file("/res/icons/clipboard.png");
|
icon.load_from_file("/res/icons/16x16/clipboard.png");
|
||||||
icon.set_fill_with_background_color(true);
|
icon.set_fill_with_background_color(true);
|
||||||
icon.on_click = [& main_window = *main_window] {
|
icon.on_click = [& main_window = *main_window] {
|
||||||
main_window.show();
|
main_window.show();
|
||||||
|
|