feat: standardize gui toolkit
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "../apps_common.hpp"
|
||||
#include "../../wallpaper.hpp"
|
||||
#include <gui/mtk.hpp>
|
||||
#include <montauk/config.h>
|
||||
#include <montauk/user.h>
|
||||
|
||||
@@ -80,17 +81,15 @@ inline constexpr int USER_BTN_H = 30;
|
||||
inline constexpr int USER_BTN_W = 100;
|
||||
inline constexpr int USER_FIELD_H = 32;
|
||||
|
||||
inline mtk::Theme settings_theme(const SettingsState* st) {
|
||||
return mtk::make_theme(st->desktop->settings.accent_color);
|
||||
}
|
||||
|
||||
bool color_eq(Color a, Color b);
|
||||
bool settings_status_visible(SettingsState* st);
|
||||
void settings_set_status(SettingsState* st, const char* msg);
|
||||
int find_swatch(const Color* palette, Color current);
|
||||
|
||||
void draw_swatch_row(Canvas& c, int x, int y, const Color* palette, Color selected, Color accent);
|
||||
void draw_radio(Canvas& c, int x, int y, bool selected, Color accent);
|
||||
void draw_toggle_btn(Canvas& c, int x, int y, int bw, int bh,
|
||||
const char* label, bool active, Color accent);
|
||||
bool swatch_hit(int mx, int my, int row_x, int row_y, int* out_idx);
|
||||
|
||||
void apply_ui_scale(int scale);
|
||||
|
||||
void settings_draw_appearance(Canvas& c, SettingsState* st);
|
||||
|
||||
Reference in New Issue
Block a user