have color picker check for dark theme
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
0c822d5bfa
commit
5cb9b5cab9
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ void color_picker(MwWidget handle, void* user_data, void* call_data) {
|
|||
|
||||
MwAddUserHandler(cpicker, MwNcolorChosenHandler, color_callback, NULL);
|
||||
|
||||
MwSetText(cpicker, MwNbackground, MwDefaultBackground);
|
||||
MwSetText(cpicker, MwNbackground, MwGetInteger(cpicker, MwNdarkTheme) ? MwDefaultForeground : MwDefaultBackground);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
|
@ -41,7 +41,7 @@ int main() {
|
|||
button = MwVaCreateWidget(MwButtonClass, "button", window, 160, 180, 320, 120,
|
||||
MwNtext, "change window background",
|
||||
NULL);
|
||||
MwSetText(button, MwNbackground, MwDefaultBackground);
|
||||
MwSetText(button, MwNbackground, MwGetInteger(button, MwNdarkTheme) ? MwDefaultForeground : MwDefaultBackground);
|
||||
|
||||
MwAddUserHandler(button, MwNactivateHandler, color_picker, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue