Открыть боковую панель
МОС
Исходные коды
devel
smartcar
Коммиты
71daac49
Коммит
71daac49
создал
Окт 09, 2025
по автору
Коул Милена Ричардовна
Просмотр файлов
change buttons color
change color of buttons from default to grey
владелец
ed49504b
Изменения
3
Скрыть пробелы
Построчно
Рядом
forms/bluetoothmode.cpp
Просмотр файла @
71daac49
...
...
@@ -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
...
...
forms/bluetoothmode.h
Просмотр файла @
71daac49
...
...
@@ -31,6 +31,8 @@ private:
Vench
*
m_vench
;
bool
fl_rec
;
bool
fl_play
;
const
QString
defaultButtonStyle
=
"background-color: rgb(195, 195, 195);
\n
selection-background-color: rgb(255, 255, 255);"
;
};
#endif // BLUETOOTHMODE_H
forms/bluetoothmode.ui
Просмотр файла @
71daac49
...
...
@@ -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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать