Update console style

This commit is contained in:
Ryan Huffman 2014-05-27 08:57:29 -07:00
parent 9af0269151
commit 4a0a9f8a36
3 changed files with 17 additions and 18 deletions

View file

@ -3,18 +3,18 @@
font-size: 14px;
}
promptTextEdit {
#promptTextEdit {
color: rgb(117, 133, 140);
}
promptTextEdit:!enabled {
#promptTextEdit:!enabled {
color: rgba(0, 0, 0, 0.5);
}
promptGutterLabel {
#promptGutterLabel {
color: rgba(117, 133, 140);
}
promptGutterLabel:!enabled {
#promptGutterLabel:!enabled {
color: rgba(0, 0, 0, 0.5);
}

View file

@ -36,17 +36,17 @@ JSConsole::JSConsole(QWidget* parent, ScriptEngine* scriptEngine) :
_commandHistory(),
_scriptEngine(scriptEngine) {
_ui->setupUi(this);
_ui->promptTextEdit->setLineWrapMode(QTextEdit::NoWrap);
_ui->promptTextEdit->setWordWrapMode(QTextOption::NoWrap);
_ui->promptTextEdit->installEventFilter(this);
QFile styleSheet(Application::resourcesPath() + "styles/console.qss");
if (styleSheet.open(QIODevice::ReadOnly)) {
QDir::setCurrent(Application::resourcesPath());
setStyleSheet(styleSheet.readAll());
}
_ui->setupUi(this);
_ui->promptTextEdit->setLineWrapMode(QTextEdit::NoWrap);
_ui->promptTextEdit->setWordWrapMode(QTextOption::NoWrap);
_ui->promptTextEdit->installEventFilter(this);
connect(_ui->scrollArea->verticalScrollBar(), SIGNAL(rangeChanged(int, int)), this, SLOT(scrollToBottom()));
connect(_ui->promptTextEdit, SIGNAL(textChanged()), this, SLOT(resizeTextInput()));

View file

@ -187,27 +187,30 @@
<property name="minimumSize">
<size>
<width>16</width>
<height>0</height>
<height>23</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16</width>
<height>16</height>
<height>23</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: white; font-weight: bold; color: rgb(169, 187, 195);</string>
<string notr="true">padding: 0px 0 0 0;</string>
</property>
<property name="text">
<string>&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
</property>
</widget>
</item>
<item>
@ -224,10 +227,6 @@
<pointsize>-1</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true"> font-family: Inconsolata, Lucida Console, Andale Mono, Monaco;
font-size:14px</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>