This document is quick guide for developing and updating the Pactus Core GUI.
The Pactus Core GUI utilizes gtk for desktop GUI. To develop, build and test it you must have these packages installed:
libgtk-4-devlibcairo2-devlibglib2.0-devlibadwaita-1-dev
Install using apt:
apt install libgtk-4-dev libcairo2-dev libglib2.0-dev libadwaita-1-devInstall GTK using brew:
brew install gtk4 gobject-introspection gtksourceview5 libadwaitaglib2-develmingw-w64-x86_64-gomingw-w64-x86_64-gtk4mingw-w64-x86_64-glib2mingw-w64-x86_64-gccmingw-w64-x86_64-pkg-configmingw-w64-x86_64-libadwaita
With these packages installed you can build GUI using make build_gui command. You can run the GUI like: ./pactus-gui, ./pactus-gui.exe.
The Assets file includes required images, icons, ui files and custom CSS files. All .ui files are used to defined the user interface of GUI, for a proper edit and change on them make sure you have Glade installed on your machine.
When you make changes on GUI files and try to run linter using make check, it won't include gtk in it's checks. So make sure you add gtk build flag like this:
BUILD_TAG=gtk make check