diff --git a/src/widgets/HexdumpWidget.cpp b/src/widgets/HexdumpWidget.cpp index e9dbe5e2..b992abbd 100644 --- a/src/widgets/HexdumpWidget.cpp +++ b/src/widgets/HexdumpWidget.cpp @@ -634,13 +634,6 @@ void HexdumpWidget::fontsUpdated() void HexdumpWidget::colorsUpdatedSlot() { - QString styleSheet = QString("QTextEdit { background-color: %1; color: %2; }") - .arg(ConfigColor("gui.background").name()) - .arg(ConfigColor("btext").name()); - - ui->hexOffsetText->setStyleSheet(styleSheet); - ui->hexHexText->setStyleSheet(styleSheet); - ui->hexASCIIText->setStyleSheet(styleSheet); } void HexdumpWidget::clearParseWindow() diff --git a/src/widgets/HexdumpWidget.ui b/src/widgets/HexdumpWidget.ui index d8cc037d..d7fc5b6d 100644 --- a/src/widgets/HexdumpWidget.ui +++ b/src/widgets/HexdumpWidget.ui @@ -126,9 +126,6 @@ false - - - QFrame::NoFrame @@ -577,25 +574,6 @@ Copy MD5 - - QToolButton { /* all types of tool button */ - padding: 1px; - padding-left: 5px; - padding-right: 5px; - background-color: palette(button); - border-radius: 6px; -} - -QToolButton:pressed { - background-color: palette(dark); -} - -QToolTip { - background-color: #444; - border: 3px solid #444; - color: rgb(232, 232, 232); -} - @@ -636,25 +614,6 @@ QToolTip { Copy SHA1 - - QToolButton { /* all types of tool button */ - padding: 1px; - padding-left: 5px; - padding-right: 5px; - background-color: palette(button); - border-radius: 6px; -} - -QToolButton:pressed { - background-color: palette(dark); -} - -QToolTip { - background-color: #444; - border: 3px solid #444; - color: rgb(232, 232, 232); -} - diff --git a/src/widgets/PseudocodeWidget.cpp b/src/widgets/PseudocodeWidget.cpp index 6ca13b3f..d5de6e68 100644 --- a/src/widgets/PseudocodeWidget.cpp +++ b/src/widgets/PseudocodeWidget.cpp @@ -22,16 +22,6 @@ PseudocodeWidget::PseudocodeWidget(MainWindow *main, QAction *action) : connect(Config(), SIGNAL(fontsUpdated()), this, SLOT(fontsUpdated())); connect(Config(), SIGNAL(colorsUpdated()), this, SLOT(colorsUpdatedSlot())); - //connect(Core(), SIGNAL(commentsChanged()), this, SLOT(refreshPseudocode())); - //connect(Core(), SIGNAL(flagsChanged()), this, SLOT(refreshPseudocode())); - //connect(Core(), SIGNAL(functionRenamed(QString, QString)), this, SLOT(refreshPseudocode())); - //connect(Core(), SIGNAL(varsChanged()), this, SLOT(refreshPseudocode())); - //connect(Core(), SIGNAL(asmOptionsChanged()), this, SLOT(refreshPseudocode())); - //connect(Core(), &CutterCore::instructionChanged, this, [this](/*RVA offset*/) { - // refreshPseudocode(); - //}); - - connect(Core(), SIGNAL(raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType)), this, SLOT(raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType))); connect(this, &QDockWidget::visibilityChanged, this, [](bool visibility) { @@ -91,9 +81,4 @@ void PseudocodeWidget::fontsUpdated() void PseudocodeWidget::colorsUpdatedSlot() { - const QString textEditClassName(ui->textEdit->metaObject()->className()); - QString styleSheet = QString(textEditClassName + " { background-color: %1; color: %2; }") - .arg(ConfigColor("gui.background").name()) - .arg(ConfigColor("btext").name()); - ui->textEdit->setStyleSheet(styleSheet); }