mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 01:22:25 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -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()));
|
||||
|
||||
|
|
|
@ -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>></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>
|
||||
|
|
Loading…
Reference in a new issue