Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/gui/MemoryBrowsePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,22 @@ MemoryBrowsePanel::MemoryBrowsePanel(QWidget* parent)
root->addWidget(m_table, 1);
m_table->hide();

// "MEM+" button anchored at the bottom of the panel — outside the
// scrolling table so it stays visible regardless of scroll position.
// Style matches the spectrum overlay menu buttons it replaces.
// Keep the list action at the top of the panel, immediately above the
// scrolling rows. The bottom of this fixed-height drawer can be clipped
// by short panadapters, but its top remains visible.
m_addBtn = new QPushButton(QStringLiteral("Add Memory"), this);
m_addBtn->setObjectName(QStringLiteral("memoryAddButton"));
m_addBtn->setAccessibleName(QStringLiteral("Add Memory"));
Comment thread
NF0T marked this conversation as resolved.
m_addBtn->setAccessibleDescription(
QStringLiteral("Save the current slice on this panadapter as a memory."));
m_addBtn->setFixedHeight(22);
AetherSDR::ThemeManager::instance().applyStyleSheet(m_addBtn, "QPushButton { background: rgba(20, 30, 45, 240); "
"border: 1px solid rgba(255, 255, 255, 40); border-radius: 2px; "
"color: {{color.text.primary}}; font-size: 11px; font-weight: bold; }"
"QPushButton:hover { background: rgba(0, 112, 192, 180); "
"border: 1px solid {{color.accent.dim}}; }");
m_addBtn->setToolTip("Save the current slice on this panadapter as a memory.");
root->addWidget(m_addBtn, 0);
root->insertWidget(0, m_addBtn, 0);
connect(m_addBtn, &QPushButton::clicked, this,
&MemoryBrowsePanel::quickAddRequested);

Expand Down
2 changes: 1 addition & 1 deletion src/gui/SpectrumOverlayMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ SpectrumOverlayMenu::SpectrumOverlayMenu(QWidget* parent)
{"ANT", 1, nullptr}, // 3 — toggleAntPanel
{"Display", 4, nullptr}, // 4 — toggleDisplayPanel
{"Memory", 5, nullptr}, // 6 — toggleMemoryPanel
// MEM+ moved into MemoryBrowsePanel (bottom button — doesn't scroll).
// Add Memory lives at the top of MemoryBrowsePanel, outside the scrolling rows.
{"DAX", 3, nullptr}, // 6 — toggleDaxPanel
};

Expand Down
Loading