1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

Start working on a simple Launcher app.

Let GButton have an optional icon (GraphicsBitmap) that gets rendered in the
middle of the button if present.

Also add GraphicsBitmap::load_from_file() which allows mmap'ed RGBA32 files.
I wrote a little program to take "raw" files from GIMP and swizzle them into
the correct byte order.
This commit is contained in:
Andreas Kling 2019-02-07 23:13:47 +01:00
parent 71b9ec1ae0
commit 887b4a7a1a
29 changed files with 293 additions and 11 deletions

View file

@ -26,7 +26,8 @@
#include "BochsVGADevice.h"
//#define SPAWN_GUITEST
#define SPAWN_GUITEST2
#define SPAWN_LAUNCHER
//#define SPAWN_GUITEST2
#define SPAWN_CLOCK
//#define SPAWN_FONTEDITOR
//#define SPAWN_MULTIPLE_SHELLS
@ -113,6 +114,9 @@ static void init_stage2()
#ifdef SPAWN_GUITEST2
Process::create_user_process("/bin/guitest2", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
#endif
#ifdef SPAWN_LAUNCHER
Process::create_user_process("/bin/Launcher", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
#endif
#ifdef SPAWN_CLOCK
Process::create_user_process("/bin/Clock", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
#endif

View file

@ -14,6 +14,8 @@ make -C ../FontEditor clean && \
make -C ../FontEditor && \
make -C ../Clock clean && \
make -C ../Clock && \
make -C ../Launcher clean && \
make -C ../Launcher && \
make clean &&\
make && \
sudo ./sync.sh

View file

@ -10,6 +10,8 @@ make -C ../Terminal clean && \
make -C ../Terminal && \
make -C ../Clock clean && \
make -C ../Clock && \
make -C ../Launcher clean && \
make -C ../Launcher && \
make -C ../Userland clean && \
make -C ../Userland && \
sudo ./sync.sh

View file

@ -47,6 +47,7 @@ cp -v ../Userland/guitest2 mnt/bin/guitest2
cp -v ../Userland/sysctl mnt/bin/sysctl
cp -v ../Terminal/Terminal mnt/bin/Terminal
cp -v ../FontEditor/FontEditor mnt/bin/FontEditor
cp -v ../Launcher/Launcher mnt/bin/Launcher
cp -v ../Clock/Clock mnt/bin/Clock
ln -s FontEditor mnt/bin/ff
ln -s Clock mnt/bin/cl