Skip to content

Commit

Permalink
Layout improvements in lecui_login.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmus committed May 2, 2021
1 parent f0f46b9 commit 95927a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified lecui_login/images/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion lecui_login/lecui_login.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ class login : public lecui::form {
ctrls_.minimize(false);
ctrls_.resize(false);
apprnc_.theme(lecui::themes::light);
dim_.size({ 350, 400 });
dim_.size({ 280, 320 });

auto& page = page_man_.add("home");

lecui::widgets::image_view avatar(page, "avatar");
avatar().rect.size(130, 130);
avatar().rect.place({ margin_, page.size().width - margin_,
margin_, margin_ + (dim_.size().height / 2.f) },
50.f, 0.f);
avatar().quality = lecui::image_quality::high;
avatar().file = "images\\avatar.png";

lecui::widgets::text_field username(page, "username");
Expand Down

0 comments on commit 95927a7

Please sign in to comment.