Merge branch 'master' into clipboard

This commit is contained in:
IoI_xD 2026-04-15 14:00:17 -07:00
commit 6257376b1f
4 changed files with 182 additions and 8 deletions

View file

@ -35,12 +35,11 @@ int main() {
window = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT,
MwDEFAULT, 640, 480, MwNtitle, "color picker", NULL);
MwSetText(window, MwNbackground, "#000000");
MwSetText(window, MwNbackground, MwGetInteger(window, MwNdarkTheme) ? MwDefaultBackground : MwDefaultDarkBackground);
button = MwVaCreateWidget(MwButtonClass, "button", window, 160, 180, 320, 120,
MwNtext, "change window background",
NULL);
MwSetText(button, MwNbackground, MwGetInteger(button, MwNdarkTheme) ? MwDefaultDarkBackground : MwDefaultBackground);
MwAddUserHandler(button, MwNactivateHandler, color_picker, NULL);