Small refactor of text rect measurement. Add move/resize icons

This commit is contained in:
Henrik Rydgård committed 2025-11-27 11:50:22 +01:00
1 parent f949bc8faf
commit 1ea93e2913
14 files changed
+65 -69

No files matched your search

+2 -2
View File
@@ -655,8 +655,8 @@ void TouchControlLayoutScreen::CreateViews() {
LinearLayout *leftColumn = leftColumnScroll->Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(Margins(12.0f, 0.0f))));
mode_ = new ChoiceStrip(ORIENT_VERTICAL);
mode_->AddChoice(di->T("Move"));
mode_->AddChoice(di->T("Resize"));
mode_->AddChoice(di->T("Move"), ImageID("I_MOVE"));
mode_->AddChoice(di->T("Resize"), ImageID("I_RESIZE"));
mode_->SetSelection(0, false);
mode_->OnChoice.Handle(this, &TouchControlLayoutScreen::OnMode);