1
0
Fork 0

GUI: new icons + updated AttachDialog + reload style.css + updated translation template

This commit is contained in:
mrexodia 2016-05-22 19:51:31 +02:00
parent 9311df4f33
commit b48e29bbed
8 changed files with 456 additions and 265 deletions

View File

@ -80,7 +80,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Refresh(F5)</string>
<string>Refresh (F5)</string>
</property>
<property name="autoDefault">
<bool>false</bool>

View File

@ -16,7 +16,9 @@
QString MainWindow::windowTitle = "";
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow)
MainWindow::MainWindow(QWidget* parent)
: QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
@ -1242,3 +1244,19 @@ void MainWindow::on_actionFaq_triggered()
{
QDesktopServices::openUrl(QUrl("http://faq.x64dbg.com"));
}
void MainWindow::on_actionReloadStylesheet_triggered()
{
QFile f(QString("%1/style.css").arg(QCoreApplication::applicationDirPath()));
if(f.open(QFile::ReadOnly | QFile::Text))
{
QTextStream in(&f);
auto style = in.readAll();
f.close();
qApp->setStyleSheet(style);
}
else
qApp->setStyleSheet("");
ensurePolished();
update();
}

View File

@ -207,8 +207,10 @@ protected:
public:
static QString windowTitle;
private slots:
void on_actionFaq_triggered();
void on_actionReloadStylesheet_triggered();
};
#endif // MAINWINDOW_H

View File

@ -23,7 +23,7 @@
<x>0</x>
<y>0</y>
<width>868</width>
<height>23</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -119,6 +119,7 @@
<addaction name="actionAppearance"/>
<addaction name="actionShortcuts"/>
<addaction name="actionTopmost"/>
<addaction name="actionReloadStylesheet"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
@ -711,8 +712,27 @@
</property>
</action>
<action name="actionHideDebugger">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/icons/images/hide-debugger.png</normaloff>:/icons/images/hide-debugger.png</iconset>
</property>
<property name="text">
<string>Hide debugger</string>
<string>Hide debugger (PEB)</string>
</property>
<property name="toolTip">
<string>Hide debugger (PEB)</string>
</property>
</action>
<action name="actionReloadStylesheet">
<property name="icon">
<iconset resource="../../resource.qrc">
<normaloff>:/icons/images/css.png</normaloff>:/icons/images/css.png</iconset>
</property>
<property name="text">
<string>Reload style.css</string>
</property>
<property name="toolTip">
<string>Reload style.css</string>
</property>
</action>
</widget>

File diff suppressed because it is too large Load Diff

BIN
src/gui/images/css.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

View File

@ -75,5 +75,7 @@
<file>images/processor64.png</file>
<file>images/processor-cpu.png</file>
<file>images/seh-chain.png</file>
<file>images/css.png</file>
<file>images/hide-debugger.png</file>
</qresource>
</RCC>