Skip to content

Commit

Permalink
pastel colors
Browse files Browse the repository at this point in the history
  • Loading branch information
povauboin committed Dec 17, 2018
1 parent 60caf9d commit cef7796
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion main.cpp
Expand Up @@ -5,7 +5,7 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
w.showMaximized();

return a.exec();
}
2 changes: 1 addition & 1 deletion mainwindow.cpp
Expand Up @@ -31,7 +31,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->treeView, &QTreeView::clicked, this, &MainWindow::updateAscii);
connect(ui->treeView, &QTreeView::clicked, this, &MainWindow::updateDetails);

// loadFile(); // FIXME for dev
loadFile(); // FIXME for dev
connect(ui->actionOpen, &QAction::triggered, this, &MainWindow::loadFile);
connect(ui->actionStart, &QAction::triggered, this, &MainWindow::startCapture);
}
Expand Down
6 changes: 3 additions & 3 deletions mainwindow.ui
Expand Up @@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>839</width>
<height>607</height>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -210,7 +210,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>839</width>
<width>800</width>
<height>20</height>
</rect>
</property>
Expand Down
2 changes: 1 addition & 1 deletion usbgroup.cpp
Expand Up @@ -33,5 +33,5 @@ QVariant USBGroup::data(int column) const

QBrush USBGroup::background() const
{
return QBrush(Qt::green);
return QBrush(QColor(255, 241, 118));
}
6 changes: 3 additions & 3 deletions usbtransaction.cpp
Expand Up @@ -44,11 +44,11 @@ QBrush USBTransaction::background() const

switch(m_token->getPid()) {
case PID_SETUP:
return noack ? QBrush(Qt::darkYellow) : QBrush(Qt::yellow);
return noack ? QBrush(QColor(188, 170, 164)) : QBrush(QColor(141, 110, 99));
case PID_IN:
return noack ? QBrush(Qt::darkMagenta) : QBrush(Qt::magenta);
return noack ? QBrush(QColor(165, 214, 167)) : QBrush(QColor(102, 187, 106));
case PID_OUT:
return noack ? QBrush(Qt::darkCyan) : QBrush(Qt::cyan);
return noack ? QBrush(QColor(144, 202, 249)) : QBrush(QColor(66, 165, 245));
}
}
return QBrush();
Expand Down

0 comments on commit cef7796

Please sign in to comment.