Start using "gui.navbar.seek" color instead of "gui.navbar.err" to show seek cursor (#1244)

* fix navbar to use seek

* honor navbar.seek

* honor navbar.seek in Sections widget

* fix typo
This commit is contained in:
Itay Cohen 2019-03-07 07:26:26 +02:00 committed by GitHub
parent 003d0d3c26
commit d46ff14a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -199,8 +199,7 @@ void Configuration::loadBaseThemeNative()
// Custom
setColor("gui.imports", QColor(50, 140, 255));
setColor("gui.main", QColor(0, 128, 0));
setColor("gui.navbar.err", QColor(255, 0, 0));
setColor("gui.navbar.seek", QColor(233, 86, 86));
setColor("gui.navbar.seek", QColor(255, 0, 0));
setColor("gui.navbar.pc", QColor(66, 238, 244));
setColor("gui.navbar.code", QColor(104, 229, 69));
setColor("gui.navbar.str", QColor(69, 104, 229));
@ -268,7 +267,6 @@ void Configuration::loadBaseThemeDark()
setColor("gui.main", QColor(0, 128, 0));
// GUI: navbar
setColor("gui.navbar.err", QColor(233, 86, 86));
setColor("gui.navbar.seek", QColor(233, 86, 86));
setColor("gui.navbar.pc", QColor(66, 238, 244));
setColor("gui.navbar.code", QColor(130, 200, 111));

View File

@ -333,7 +333,7 @@ AbstractAddrDock::AbstractAddrDock(SectionsModel *model, QWidget *parent) :
heightDivisor = 1000;
rectOffset = 100;
rectWidth = 400;
indicatorColor = ConfigColor("gui.navbar.err");
indicatorColor = ConfigColor("gui.navbar.seek");
textColor = ConfigColor("gui.dataoffset");
}

View File

@ -221,7 +221,7 @@ void VisualNavbar::drawPCCursor()
void VisualNavbar::drawSeekCursor()
{
drawCursor(Core()->getOffset(), Config()->getColor("gui.navbar.err"), seekGraphicsItem);
drawCursor(Core()->getOffset(), Config()->getColor("gui.navbar.seek"), seekGraphicsItem);
}
void VisualNavbar::on_seekChanged(RVA addr)