Web version welcome popup captures cursor
This commit is contained in:
parent
bcadd5d68f
commit
ac6c2b0ea8
1 changed files with 3 additions and 15 deletions
|
|
@ -619,21 +619,9 @@ void Toolbar::top_toolbar() {
|
||||||
|
|
||||||
void Toolbar::web_version_welcome() {
|
void Toolbar::web_version_welcome() {
|
||||||
auto& gui = main.g.gui;
|
auto& gui = main.g.gui;
|
||||||
auto& io = gui.io;
|
|
||||||
|
|
||||||
CLAY_AUTO_ID({
|
center_obstructing_window_gui("web version welcome gui", CLAY_SIZING_FIXED(700), CLAY_SIZING_FIT(0), [&] {
|
||||||
.layout = {
|
gui.new_id("web version welcome notif", [&] {
|
||||||
.sizing = {.width = CLAY_SIZING_FIXED(700), .height = CLAY_SIZING_FIT(0) },
|
|
||||||
.padding = CLAY_PADDING_ALL(io.theme->padding1),
|
|
||||||
.childGap = io.theme->childGap1,
|
|
||||||
.childAlignment = { .x = CLAY_ALIGN_X_CENTER, .y = CLAY_ALIGN_Y_TOP},
|
|
||||||
.layoutDirection = CLAY_TOP_TO_BOTTOM
|
|
||||||
},
|
|
||||||
.backgroundColor = convert_vec4<Clay_Color>(io.theme->backColor1),
|
|
||||||
.cornerRadius = CLAY_CORNER_RADIUS(io.theme->windowCorners1),
|
|
||||||
.floating = {.attachPoints = {.element = CLAY_ATTACH_POINT_CENTER_CENTER, .parent = CLAY_ATTACH_POINT_CENTER_CENTER}, .attachTo = CLAY_ATTACH_TO_PARENT}
|
|
||||||
}) {
|
|
||||||
gui.new_id("web version welcome gui", [&] {
|
|
||||||
text_label_centered(gui, "Welcome to the web version of InfiniPaint!");
|
text_label_centered(gui, "Welcome to the web version of InfiniPaint!");
|
||||||
text_label(gui,
|
text_label(gui,
|
||||||
R"(This version contains more known issues than the native version of the app. This includes:
|
R"(This version contains more known issues than the native version of the app. This includes:
|
||||||
|
|
@ -651,7 +639,7 @@ If you like this app, consider downloading the native version for your system)")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void Toolbar::center_message(const char* id, const std::string& m) {
|
void Toolbar::center_message(const char* id, const std::string& m) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue