mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-17 05:13:25 +00:00
Add Security+ 2.0 TX App (#3217)
* Add U64 BoundSetting * Add secplus-tx * Add secplus license * Update icon * UI update * Add filesystem::path BoundSetting * Add file UI * Rename file * Add save button * Fix warnings, add integer conversions to UI macros * UI update * Copilot suggestions, name edit UI * Fix buffer length * Style update * Avoid recursion in Widget::style() * Apply suggestions from code review * Move secplustx.cpp to external * Shorten title * Space optimizations, remove FilePath setting * Remove assertions * Change namespace * Change title to match
This commit is contained in:
@@ -206,7 +206,11 @@ void Widget::set_style(const Style* new_style) {
|
||||
}
|
||||
|
||||
const Style& Widget::style() const {
|
||||
return style_ ? *style_ : parent()->style();
|
||||
for (const Widget* curr = this; curr; curr = curr->parent()) {
|
||||
if (curr->style_) return *curr->style_;
|
||||
}
|
||||
// default style should always be set by SystemView
|
||||
return *style_;
|
||||
}
|
||||
|
||||
void Widget::drawn(bool v) {
|
||||
|
||||
Reference in New Issue
Block a user