137
138
nux::Layout* switch_layout = new nux::HLayout();
139
140
TextureCache& cache = TextureCache::GetDefault();
140
switch_icon_ = new IconTexture(cache.FindTexture("switch_user.svg", SWITCH_ICON_SIZE.CP(scale), SWITCH_ICON_SIZE.CP(scale)));
141
switch_icon_ = new IconTexture(cache.FindTexture("switch_user", SWITCH_ICON_SIZE.CP(scale), SWITCH_ICON_SIZE.CP(scale)));
141
142
switch_layout->AddView(switch_icon_);
142
143
switch_icon_->mouse_click.connect([this](int x, int y, unsigned long button_flags, unsigned long key_flags) {
143
144
session_manager_->SwitchToGreeter();