- fix: text color for cpu info dialog not correctly setted
This commit is contained in:
parent
284a8ed695
commit
2f945dc6fb
3
NEWS.md
3
NEWS.md
|
@ -1,3 +1,6 @@
|
||||||
|
Version 0.8.11 For Dev-C++ 7 Beta
|
||||||
|
- fix: text color for cpu info dialog not correctly setted
|
||||||
|
|
||||||
Version 0.8.10 For Dev-C++ 7 Beta
|
Version 0.8.10 For Dev-C++ 7 Beta
|
||||||
- fix: Shouldn't update auto link settings, if the header name to be modified is unchanged
|
- fix: Shouldn't update auto link settings, if the header name to be modified is unchanged
|
||||||
- fix: add unit to project not correctly set new unit file's encoding
|
- fix: add unit to project not correctly set new unit file's encoding
|
||||||
|
|
|
@ -59,6 +59,8 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent)
|
||||||
mRedoList->connect(mRedoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onRedoAdded);
|
mRedoList->connect(mRedoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onRedoAdded);
|
||||||
mOrigRedoList = mRedoList;
|
mOrigRedoList = mRedoList;
|
||||||
|
|
||||||
|
mForegroundColor=palette().color(QPalette::Text);
|
||||||
|
mBackgroundColor=palette().color(QPalette::Base);
|
||||||
mCaretColor = QColorConstants::Red;
|
mCaretColor = QColorConstants::Red;
|
||||||
mCaretUseTextColor = false;
|
mCaretUseTextColor = false;
|
||||||
mActiveLineColor = QColorConstants::Svg::lightblue;
|
mActiveLineColor = QColorConstants::Svg::lightblue;
|
||||||
|
|
|
@ -58,6 +58,7 @@ void EnvironmentAppearenceWidget::doSave()
|
||||||
pSettings->environment().setInterfaceFontSize(ui->spinFontSize->value());
|
pSettings->environment().setInterfaceFontSize(ui->spinFontSize->value());
|
||||||
pSettings->environment().setLanguage(ui->cbLanguage->currentData().toString());
|
pSettings->environment().setLanguage(ui->cbLanguage->currentData().toString());
|
||||||
|
|
||||||
|
pSettings->editor().save();
|
||||||
pSettings->environment().save();
|
pSettings->environment().save();
|
||||||
pMainWindow->applySettings();
|
pMainWindow->applySettings();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef VERSION_H
|
#ifndef VERSION_H
|
||||||
#define VERSION_H
|
#define VERSION_H
|
||||||
#include <QOBJECT>
|
#include <QObject>
|
||||||
|
|
||||||
#define DEVCPP_VERSION "beta.0.8.9"
|
#define DEVCPP_VERSION "beta.0.8.11"
|
||||||
|
|
||||||
#endif // VERSION_H
|
#endif // VERSION_H
|
||||||
|
|
|
@ -13,12 +13,28 @@ CPUDialog::CPUDialog(QWidget *parent) :
|
||||||
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
setWindowFlags(windowFlags() | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint);
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->txtCode->setHighlighter(highlighterManager.getCppHighlighter());
|
ui->txtCode->setHighlighter(highlighterManager.getCppHighlighter());
|
||||||
|
ui->txtCode->setReadOnly(true);
|
||||||
|
ui->txtCode->gutter().setShowLineNumbers(false);
|
||||||
|
ui->txtCode->setCaretUseTextColor(true);
|
||||||
|
|
||||||
|
ui->txtCode->codeFolding().indentGuides = false;
|
||||||
|
ui->txtCode->codeFolding().fillIndents = false;
|
||||||
|
ui->txtCode->setRightEdge(0);
|
||||||
|
ui->txtCode->setUseCodeFolding(false);
|
||||||
highlighterManager.applyColorScheme(ui->txtCode->highlighter(),
|
highlighterManager.applyColorScheme(ui->txtCode->highlighter(),
|
||||||
pSettings->editor().colorScheme());
|
pSettings->editor().colorScheme());
|
||||||
PColorSchemeItem item = pColorManager->getItem(pSettings->editor().colorScheme(),COLOR_SCHEME_ACTIVE_LINE);
|
PColorSchemeItem item = pColorManager->getItem(pSettings->editor().colorScheme(),COLOR_SCHEME_ACTIVE_LINE);
|
||||||
if (item) {
|
if (item) {
|
||||||
ui->txtCode->setActiveLineColor(item->background());
|
ui->txtCode->setActiveLineColor(item->background());
|
||||||
}
|
}
|
||||||
|
item = pColorManager->getItem(pSettings->editor().colorScheme(),COLOR_SCHEME_TEXT);
|
||||||
|
if (item) {
|
||||||
|
ui->txtCode->setForegroundColor(item->foreground());
|
||||||
|
ui->txtCode->setBackgroundColor(item->background());
|
||||||
|
} else {
|
||||||
|
ui->txtCode->setForegroundColor(palette().color(QPalette::Text));
|
||||||
|
ui->txtCode->setBackgroundColor(palette().color(QPalette::Base));
|
||||||
|
}
|
||||||
ui->lstRegister->setModel(pMainWindow->debugger()->registerModel());
|
ui->lstRegister->setModel(pMainWindow->debugger()->registerModel());
|
||||||
|
|
||||||
ui->rdIntel->setChecked(pSettings->debugger().useIntelStyle());
|
ui->rdIntel->setChecked(pSettings->debugger().useIntelStyle());
|
||||||
|
|
Loading…
Reference in New Issue