Skip to content

Commit 4f59edf

Browse files
committed
chore(UI): move file delete button to the left & add action button styling
1 parent fe0439f commit 4f59edf

File tree

4 files changed

+3
-0
lines changed

4 files changed

+3
-0
lines changed

src/UI/Screens/File/FileView.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ namespace UI
203203
m_heightLabel.addStyle(Themes::getLvglStyles().text_muted);
204204
m_layerHeightLabel.addStyle(Themes::getLvglStyles().text_muted);
205205

206+
m_okBtn.addStyle(Themes::getLvglStyles().actionBtn);
207+
206208
m_deleteBtn.setSize(LV_SIZE_CONTENT, LV_SIZE_CONTENT);
207209
m_deleteBtn.addClickedCallback(
208210
[this](lv_event_t*)
@@ -213,6 +215,7 @@ namespace UI
213215
}
214216
});
215217
m_deleteBtn.setVisible(false);
218+
m_deleteBtn.moveToIndex(0); // position on the left
216219
}
217220

218221
void FileView::StartPrintModal::setFile(std::string_view value)
111 Bytes
Loading
104 Bytes
Loading
118 Bytes
Loading

0 commit comments

Comments
 (0)