mirror of
https://github.com/x64dbg/x64dbg.git
synced 2025-02-19 20:44:10 +00:00
Link color themeable
This commit is contained in:
parent
47313dee8a
commit
8b024cb171
@ -235,3 +235,4 @@ ThreadCurrentBackgroundColor=#C24000
|
||||
ThreadCurrentColor=#FFFFFF
|
||||
WatchTriggeredBackgroundColor=#XXXXXX
|
||||
WatchTriggeredColor=#EF5350
|
||||
LinkColor=#89A2F6
|
||||
|
@ -231,7 +231,7 @@
|
||||
<set>Qt::ImhUrlCharactersOnly</set>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><a href="http://p.yusukekamiyamane.com"><span style=" text-decoration: underline; color:#0000ff;">Yusuke Kamiyamane</span></a><br/><a href="https://github.com/mrfearless"><span style=" text-decoration: underline; color:#0000ff;">mrfearless</span></a></p></body></html></string>
|
||||
<string><html><head/><body><p><a href="http://p.yusukekamiyamane.com"><span style=" text-decoration: underline;">Yusuke Kamiyamane</span></a><br/><a href="https://github.com/mrfearless"><span style=" text-decoration: underline;">mrfearless</span></a></p></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
|
@ -602,6 +602,7 @@ void AppearanceDialog::colorInfoListInit()
|
||||
colorInfoListAppend(tr("Symbol Unloaded Text"), "SymbolUnloadedTextColor", "");
|
||||
colorInfoListAppend(tr("Symbol Loading Text"), "SymbolLoadingTextColor", "");
|
||||
colorInfoListAppend(tr("Symbol Loaded Text"), "SymbolLoadedTextColor", "");
|
||||
colorInfoListAppend(tr("Link color"), "LinkColor", "");
|
||||
|
||||
|
||||
//dev helper
|
||||
|
@ -360,6 +360,7 @@ MainWindow::MainWindow(QWidget* parent)
|
||||
|
||||
connect(mTabWidget, SIGNAL(tabMovedTabWidget(int, int)), this, SLOT(tabMovedSlot(int, int)));
|
||||
connect(Config(), SIGNAL(shortcutsUpdated()), this, SLOT(refreshShortcuts()));
|
||||
connect(Config(), SIGNAL(colorsUpdated()), this, SLOT(updateStyle()));
|
||||
|
||||
// Menu stuff
|
||||
actionManageFavourites = nullptr;
|
||||
@ -2322,3 +2323,11 @@ void MainWindow::on_actionDefaultTheme_triggered()
|
||||
// Remove custom colors
|
||||
BridgeSettingSet("Colors", "CustomColorCount", nullptr);
|
||||
}
|
||||
|
||||
void MainWindow::updateStyle()
|
||||
{
|
||||
// Set configured link color
|
||||
QPalette appPalette = QApplication::palette();
|
||||
appPalette.setColor(QPalette::Link, ConfigColor("LinkColor"));
|
||||
QApplication::setPalette(appPalette);
|
||||
}
|
||||
|
@ -275,6 +275,7 @@ protected:
|
||||
|
||||
private slots:
|
||||
void setupLanguagesMenu2();
|
||||
void updateStyle();
|
||||
|
||||
void on_actionFaq_triggered();
|
||||
void on_actionReloadStylesheet_triggered();
|
||||
|
@ -245,6 +245,7 @@ Configuration::Configuration() : QObject(), noMoreMsgbox(false)
|
||||
defaultColors.insert("SymbolLoadingTextColor", QColor("#8B671F"));
|
||||
defaultColors.insert("SymbolLoadedTextColor", QColor("#008000"));
|
||||
defaultColors.insert("BackgroundFlickerColor", QColor("#ff6961"));
|
||||
defaultColors.insert("LinkColor", QColor("#0000ff"));
|
||||
|
||||
//bool settings
|
||||
QMap<QString, bool> disassemblyBool;
|
||||
|
@ -107,6 +107,11 @@ int main(int argc, char* argv[])
|
||||
mConfiguration = new Configuration;
|
||||
application.setFont(ConfigFont("Application"));
|
||||
|
||||
// Set configured link color
|
||||
QPalette appPalette = application.palette();
|
||||
appPalette.setColor(QPalette::Link, ConfigColor("LinkColor"));
|
||||
application.setPalette(appPalette);
|
||||
|
||||
// Register custom data types
|
||||
qRegisterMetaType<dsint>("dsint");
|
||||
qRegisterMetaType<duint>("duint");
|
||||
|
Loading…
x
Reference in New Issue
Block a user