feat: kernel network statistics reporting, new Network configuration applet
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <gui/gui.hpp>
|
||||
#include <gui/canvas.hpp>
|
||||
#include <gui/mtk.hpp>
|
||||
#include <gui/mtk/settings.hpp>
|
||||
#include <gui/standalone.hpp>
|
||||
#include <gui/truetype.hpp>
|
||||
|
||||
@@ -116,30 +117,7 @@ static void apply_scale(int scale) {
|
||||
}
|
||||
|
||||
static void load_accent() {
|
||||
g_accent = colors::ACCENT;
|
||||
|
||||
char user[64] = {};
|
||||
if (montauk::getuser(user, sizeof(user)) > 0 && user[0]) {
|
||||
auto doc = montauk::config::load_user(user, "desktop");
|
||||
int64_t accent = doc.get_int("appearance.accent_color", -1);
|
||||
if (accent >= 0) {
|
||||
g_accent = Color::from_rgb((uint8_t)((accent >> 16) & 0xFF),
|
||||
(uint8_t)((accent >> 8) & 0xFF),
|
||||
(uint8_t)(accent & 0xFF));
|
||||
doc.destroy();
|
||||
return;
|
||||
}
|
||||
doc.destroy();
|
||||
}
|
||||
|
||||
auto doc = montauk::config::load("desktop");
|
||||
int64_t accent = doc.get_int("appearance.accent_color", -1);
|
||||
if (accent >= 0) {
|
||||
g_accent = Color::from_rgb((uint8_t)((accent >> 16) & 0xFF),
|
||||
(uint8_t)((accent >> 8) & 0xFF),
|
||||
(uint8_t)(accent & 0xFF));
|
||||
}
|
||||
doc.destroy();
|
||||
g_accent = mtk::load_system_accent();
|
||||
}
|
||||
|
||||
static void build_key(char* out, int cap, const char* base, const char* field) {
|
||||
|
||||
Reference in New Issue
Block a user