implement excluded locations menu

This commit is contained in:
gymnast86
2026-06-05 21:10:57 -07:00
parent fbf4fcc50c
commit 7d2c9776ea
8 changed files with 423 additions and 17 deletions
+4 -2
View File
@@ -15,7 +15,7 @@ Rml::Element* createRoot(Rml::Element* parent) {
} // namespace
Pane::Pane(Rml::Element* parent, Type type) : FluentComponent(createRoot(parent)), mType(type) {
Pane::Pane(Rml::Element* parent, Type type, bool bottomSpacer) : FluentComponent(createRoot(parent)), mType(type), mBottomSpacer(bottomSpacer) {
listen(Rml::EventId::Keydown, [this](Rml::Event& event) {
const auto cmd = map_nav_event(event);
@@ -192,7 +192,9 @@ void Pane::finalize() {
// padding-bottom or margin-bottom on a scrollable flex container, so
// we need to create a fake spacer with an actual layout height to get
// padding at the bottom of a scrollable container.
append(mRoot, "spacer");
if (mBottomSpacer) {
append(mRoot, "spacer");
}
}
void Pane::clear() {