mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Hexdump and Pseudocode widgets colors Fix #410
This commit is contained in:
parent
87ee023235
commit
8afc02dd4e
@ -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()
|
||||
|
@ -126,9 +126,6 @@
|
||||
<property name="acceptDrops">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
@ -577,25 +574,6 @@
|
||||
<property name="toolTip">
|
||||
<string notr="true">Copy MD5</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">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);
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@ -636,25 +614,6 @@ QToolTip {
|
||||
<property name="toolTip">
|
||||
<string notr="true">Copy SHA1</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">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);
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user