Коммит 71daac49 создал по автору Коул Милена Ричардовна's avatar Коул Милена Ричардовна
Просмотр файлов

change buttons color

change color of buttons from default to grey
владелец ed49504b
......@@ -87,7 +87,7 @@ void BluetoothMode::RecClicked()
{
if (fl_rec)
{
ui->BRec->setStyleSheet("");
ui->BRec->setStyleSheet(defaultButtonStyle);
ui->BRec->setText("Запись");
}
else
......@@ -103,7 +103,7 @@ void BluetoothMode::PlayClicked()
{
if (fl_play)
{
ui->BPlay->setStyleSheet("");
ui->BPlay->setStyleSheet(defaultButtonStyle);
ui->BPlay->setText("Поехали");
}
else
......
......@@ -31,6 +31,8 @@ private:
Vench *m_vench;
bool fl_rec;
bool fl_play;
const QString defaultButtonStyle = "background-color: rgb(195, 195, 195);\nselection-background-color: rgb(255, 255, 255);";
};
#endif // BLUETOOTHMODE_H
......@@ -93,6 +93,10 @@
</item>
<item row="5" column="2">
<widget class="QPushButton" name="BPlay">
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Поехали</string>
</property>
......@@ -136,6 +140,10 @@
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Вперед (w)</string>
</property>
......@@ -155,6 +163,10 @@
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Вправо (d)</string>
</property>
......@@ -174,6 +186,10 @@
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Назад (s)</string>
</property>
......@@ -193,6 +209,10 @@
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Стоп (Пробел)</string>
</property>
......@@ -212,6 +232,10 @@
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Влево (a)</string>
</property>
......@@ -225,12 +249,19 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Запись</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="2">
......@@ -241,6 +272,10 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Свет</string>
</property>
......@@ -267,6 +302,10 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Сигнал (Бип)</string>
</property>
......@@ -329,6 +368,10 @@
</item>
<item>
<widget class="QPushButton" name="BRuchnComm">
<property name="styleSheet">
<string notr="true">background-color: rgb(195, 195, 195);
selection-background-color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>Выполнить команду</string>
</property>
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать