From 26b682122b62672362961d3a2927bd5fd5023730 Mon Sep 17 00:00:00 2001 From: chris pember Date: Sat, 1 Sep 2012 11:11:44 -0700 Subject: [PATCH] fixed the text on the mixer, need mike or someone to hook up the reverse button for the yaw mixer, as well as change the range on the slider --- .../stylesheets/default_linux.qss | 72 ++++++++++++- .../stylesheets/default_windows.qss | 100 ++++++++++++++++++ .../openpilotgcs/stylesheets/wide_linux.qss | 72 ++++++++++++- .../openpilotgcs/stylesheets/wide_macos.qss | 27 +++-- .../openpilotgcs/stylesheets/wide_windows.qss | 100 ++++++++++++++++++ .../src/plugins/config/airframe.ui | 12 +-- .../src/plugins/config/stabilization.ui | 28 +++-- 7 files changed, 385 insertions(+), 26 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_linux.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_linux.qss index 1c27c3d69..035fa5633 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_linux.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_linux.qss @@ -1,6 +1,5 @@ MyListWidget {font-size: 11px;} Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(200, 200, 200, 255));} - @@ -29,4 +28,75 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: padding: 0px; } + QSlider::groove:horizontal { + border: 1px solid rgb(196,196,196); + background: white; + height: 6px; + border-radius: 2px; + margin 10px 10px; + } + QSlider::add-page:horizontal { + background: #fff; + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + QSlider::sub-page:horizontal { + background: rgb(249,117,76); + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + + QSlider::handle:horizontal { + background: rgb(196,196,196); + width: 18px; + height: 28px; + margin: -2px 0; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::groove:vertical { + border: 1px solid rgb(196,196,196); + background: white; + width: 6px; + border-radius: 2px; + margin 0px -10px; + } + QSlider::sub-page:vertical { + background: #fff; + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + QSlider::add-page:vertical { + background: rgb(249,117,76); + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + + QSlider::handle:vertical { + background: rgb(196,196,196); + width: 18px; + margin: -6 -6; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::handle:vertical:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } + + QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_windows.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_windows.qss index 3d57edaeb..035fa5633 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_windows.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/default_windows.qss @@ -1,2 +1,102 @@ MyListWidget {font-size: 11px;} Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(200, 200, 200, 255));} + + + + + + + QGroupBox { + border: 1px solid gray; + border-radius: 5px; + margin-top: 1ex; /* leave space at the top for the title */ + font-size: 11px; + font-weight: bold; + } + + QGroupBox::title { + subcontrol-origin: margin; + subcontrol-position: top left; /* position at the top center */ + padding: 0 3px; + + } + + QTabWidget::pane { /* The tab widget frame */ + margin: 1px,1px,1px,1px; + border: 2px solid rgb(196,196,196); + border-radius: 5px; + padding: 0px; + } + + QSlider::groove:horizontal { + border: 1px solid rgb(196,196,196); + background: white; + height: 6px; + border-radius: 2px; + margin 10px 10px; + } + QSlider::add-page:horizontal { + background: #fff; + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + QSlider::sub-page:horizontal { + background: rgb(249,117,76); + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + + QSlider::handle:horizontal { + background: rgb(196,196,196); + width: 18px; + height: 28px; + margin: -2px 0; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::groove:vertical { + border: 1px solid rgb(196,196,196); + background: white; + width: 6px; + border-radius: 2px; + margin 0px -10px; + } + QSlider::sub-page:vertical { + background: #fff; + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + QSlider::add-page:vertical { + background: rgb(249,117,76); + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + + QSlider::handle:vertical { + background: rgb(196,196,196); + width: 18px; + margin: -6 -6; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::handle:vertical:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } + + QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_linux.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_linux.qss index 1c27c3d69..035fa5633 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_linux.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_linux.qss @@ -1,6 +1,5 @@ MyListWidget {font-size: 11px;} Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(200, 200, 200, 255));} - @@ -29,4 +28,75 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: padding: 0px; } + QSlider::groove:horizontal { + border: 1px solid rgb(196,196,196); + background: white; + height: 6px; + border-radius: 2px; + margin 10px 10px; + } + QSlider::add-page:horizontal { + background: #fff; + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + QSlider::sub-page:horizontal { + background: rgb(249,117,76); + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + + QSlider::handle:horizontal { + background: rgb(196,196,196); + width: 18px; + height: 28px; + margin: -2px 0; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::groove:vertical { + border: 1px solid rgb(196,196,196); + background: white; + width: 6px; + border-radius: 2px; + margin 0px -10px; + } + QSlider::sub-page:vertical { + background: #fff; + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + QSlider::add-page:vertical { + background: rgb(249,117,76); + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + + QSlider::handle:vertical { + background: rgb(196,196,196); + width: 18px; + margin: -6 -6; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::handle:vertical:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } + + QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_macos.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_macos.qss index 22958dbdd..035fa5633 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_macos.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_macos.qss @@ -33,7 +33,7 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: background: white; height: 6px; border-radius: 2px; - margin 2px 2px; + margin 10px 10px; } QSlider::add-page:horizontal { background: #fff; @@ -59,24 +59,21 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: border: 1px solid #777; } - - - QSlider::groove:vertical { border: 1px solid rgb(196,196,196); background: white; width: 6px; border-radius: 2px; - margin 0px 2px; + margin 0px -10px; } - QSlider::add-page:vertical { + QSlider::sub-page:vertical { background: #fff; border: 1px solid #777; width: 1px; border-radius: 4px; } - QSlider::sub-page:vertical { + QSlider::add-page:vertical { background: rgb(249,117,76); border: 1px solid #777; width: 1px; @@ -87,7 +84,19 @@ Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2: QSlider::handle:vertical { background: rgb(196,196,196); width: 18px; - margin: -6 0; + margin: -6 -6; border-radius: 3px; border: 1px solid #777; - } \ No newline at end of file + } + + QSlider::handle:vertical:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } + + QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } diff --git a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_windows.qss b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_windows.qss index 3d57edaeb..035fa5633 100644 --- a/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_windows.qss +++ b/ground/openpilotgcs/share/openpilotgcs/stylesheets/wide_windows.qss @@ -1,2 +1,102 @@ MyListWidget {font-size: 11px;} Utils--StyledBar { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(200, 200, 200, 255));} + + + + + + + QGroupBox { + border: 1px solid gray; + border-radius: 5px; + margin-top: 1ex; /* leave space at the top for the title */ + font-size: 11px; + font-weight: bold; + } + + QGroupBox::title { + subcontrol-origin: margin; + subcontrol-position: top left; /* position at the top center */ + padding: 0 3px; + + } + + QTabWidget::pane { /* The tab widget frame */ + margin: 1px,1px,1px,1px; + border: 2px solid rgb(196,196,196); + border-radius: 5px; + padding: 0px; + } + + QSlider::groove:horizontal { + border: 1px solid rgb(196,196,196); + background: white; + height: 6px; + border-radius: 2px; + margin 10px 10px; + } + QSlider::add-page:horizontal { + background: #fff; + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + QSlider::sub-page:horizontal { + background: rgb(249,117,76); + border: 1px solid #777; + height: 1px; + border-radius: 4px; + } + + + QSlider::handle:horizontal { + background: rgb(196,196,196); + width: 18px; + height: 28px; + margin: -2px 0; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::groove:vertical { + border: 1px solid rgb(196,196,196); + background: white; + width: 6px; + border-radius: 2px; + margin 0px -10px; + } + QSlider::sub-page:vertical { + background: #fff; + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + QSlider::add-page:vertical { + background: rgb(249,117,76); + border: 1px solid #777; + width: 1px; + border-radius: 4px; + } + + + QSlider::handle:vertical { + background: rgb(196,196,196); + width: 18px; + margin: -6 -6; + border-radius: 3px; + border: 1px solid #777; + } + + QSlider::handle:vertical:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } + + QSlider::handle:horizontal:hover { + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #fff, stop:1 #ddd); + border: 1px solid #444; + border-radius: 4px; + } diff --git a/ground/openpilotgcs/src/plugins/config/airframe.ui b/ground/openpilotgcs/src/plugins/config/airframe.ui index 23a6ba351..93c7dc96e 100644 --- a/ground/openpilotgcs/src/plugins/config/airframe.ui +++ b/ground/openpilotgcs/src/plugins/config/airframe.ui @@ -6,7 +6,7 @@ 0 0 - 810 + 856 633 @@ -122,7 +122,7 @@ 0 0 - 756 + 802 509 @@ -888,7 +888,6 @@ margin:1px; background:transparent - groupBox @@ -1436,7 +1435,7 @@ font: bold 12px; margin:1px; - Tricopter Yaw Motor Direction + Multirotor Yaw Direction Qt::AlignCenter @@ -1484,7 +1483,7 @@ font: bold 12px; margin:1px; - Tricopter Yaw Motor channel: + Tricopter Yaw Motor channel Qt::AlignCenter @@ -2796,7 +2795,7 @@ margin:1px; 0 0 - 756 + 802 509 @@ -3063,7 +3062,6 @@ In 'units per second', a sound default is 1000. maxAccelSlider label_37 feedForwardSliderValue - label_20 diff --git a/ground/openpilotgcs/src/plugins/config/stabilization.ui b/ground/openpilotgcs/src/plugins/config/stabilization.ui index 399d85372..d8c709894 100755 --- a/ground/openpilotgcs/src/plugins/config/stabilization.ui +++ b/ground/openpilotgcs/src/plugins/config/stabilization.ui @@ -6,8 +6,8 @@ 0 0 - 978 - 837 + 967 + 639 @@ -612,8 +612,8 @@ 0 0 - 948 - 720 + 937 + 522 @@ -6971,7 +6971,7 @@ border-radius: 5; 0 0 - 567 + 922 650 @@ -6982,6 +6982,12 @@ border-radius: 5; 24 + + 12 + + + 12 + @@ -16849,7 +16855,7 @@ border-radius: 5; 0 0 - 818 + 922 599 @@ -16857,6 +16863,12 @@ border-radius: 5; 24 + + 12 + + + 12 + @@ -19779,7 +19791,7 @@ border-radius: 5; - 0 + 12 @@ -22939,7 +22951,7 @@ border-radius: 5; - 91 + 102 20