mirror of
https://github.com/overte-org/overte.git
synced 2025-06-18 12:41:04 +02:00
Update console style
This commit is contained in:
parent
9af0269151
commit
4a0a9f8a36
3 changed files with 17 additions and 18 deletions
|
@ -3,18 +3,18 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
promptTextEdit {
|
#promptTextEdit {
|
||||||
color: rgb(117, 133, 140);
|
color: rgb(117, 133, 140);
|
||||||
}
|
}
|
||||||
|
|
||||||
promptTextEdit:!enabled {
|
#promptTextEdit:!enabled {
|
||||||
color: rgba(0, 0, 0, 0.5);
|
color: rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
promptGutterLabel {
|
#promptGutterLabel {
|
||||||
color: rgba(117, 133, 140);
|
color: rgba(117, 133, 140);
|
||||||
}
|
}
|
||||||
|
|
||||||
promptGutterLabel:!enabled {
|
#promptGutterLabel:!enabled {
|
||||||
color: rgba(0, 0, 0, 0.5);
|
color: rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,17 +36,17 @@ JSConsole::JSConsole(QWidget* parent, ScriptEngine* scriptEngine) :
|
||||||
_commandHistory(),
|
_commandHistory(),
|
||||||
_scriptEngine(scriptEngine) {
|
_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");
|
QFile styleSheet(Application::resourcesPath() + "styles/console.qss");
|
||||||
if (styleSheet.open(QIODevice::ReadOnly)) {
|
if (styleSheet.open(QIODevice::ReadOnly)) {
|
||||||
QDir::setCurrent(Application::resourcesPath());
|
QDir::setCurrent(Application::resourcesPath());
|
||||||
setStyleSheet(styleSheet.readAll());
|
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->scrollArea->verticalScrollBar(), SIGNAL(rangeChanged(int, int)), this, SLOT(scrollToBottom()));
|
||||||
connect(_ui->promptTextEdit, SIGNAL(textChanged()), this, SLOT(resizeTextInput()));
|
connect(_ui->promptTextEdit, SIGNAL(textChanged()), this, SLOT(resizeTextInput()));
|
||||||
|
|
||||||
|
|
|
@ -187,27 +187,30 @@
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>16</width>
|
||||||
<height>0</height>
|
<height>23</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16</width>
|
<width>16</width>
|
||||||
<height>16</height>
|
<height>23</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>75</weight>
|
<weight>50</weight>
|
||||||
<bold>true</bold>
|
<bold>false</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<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>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>></string>
|
<string>></string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::PlainText</enum>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -224,10 +227,6 @@
|
||||||
<pointsize>-1</pointsize>
|
<pointsize>-1</pointsize>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"> font-family: Inconsolata, Lucida Console, Andale Mono, Monaco;
|
|
||||||
font-size:14px</string>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::NoFrame</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue