diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-12 21:55:23 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-12 21:55:23 -0500 |
commit | bbbbf8b042c3443415ae766bf7b6a26134c0119d (patch) | |
tree | a604bad094914ec9cb6d76ce189986befa5e6547 /gr-qtgui/examples | |
parent | ea539a77938c81bb046a6d83f3cf3f40eaa33c49 (diff) | |
parent | 8740eb0d9460060ae97f9d252cae81cdcf0e20e5 (diff) |
Merge branch 'qtgui_stylesheets' into next
Conflicts:
gr-qtgui/lib/DisplayPlot.cc
gr-qtgui/lib/DisplayPlot.h
gr-qtgui/lib/displayform.cc
Fixed some function name issues and updated qtgui examples.
Diffstat (limited to 'gr-qtgui/examples')
-rw-r--r-- | gr-qtgui/examples/dark.qss | 115 | ||||
-rwxr-xr-x | gr-qtgui/examples/pyqt_example_c.py | 4 | ||||
-rwxr-xr-x | gr-qtgui/examples/pyqt_freq_c.py | 4 | ||||
-rwxr-xr-x | gr-qtgui/examples/pyqt_time_c.py | 4 | ||||
-rwxr-xr-x | gr-qtgui/examples/pyqt_waterfall_c.py | 4 |
5 files changed, 131 insertions, 0 deletions
diff --git a/gr-qtgui/examples/dark.qss b/gr-qtgui/examples/dark.qss new file mode 100644 index 000000000..77a375673 --- /dev/null +++ b/gr-qtgui/examples/dark.qss @@ -0,0 +1,115 @@ +QWidget +{ + color: white; + background-color: black; +} + +QwtPlot +{ + padding: 10px; + font-size: 18px; +} + +DisplayPlot { + qproperty-zoomer_color: green; + qproperty-line_color1: green; + qproperty-line_color2: green; + qproperty-line_color3: green; + qproperty-line_style1: SolidLine; + qproperty-line_style2: DashLine; + qproperty-line_style3: DotLine; + qproperty-axes_label_font_size: 18; +} + +WaterfallDisplayPlot { + qproperty-intensity_color_map_type1: 1; + qproperty-low_intensity_color: black; + qproperty-high_intensity_color: green; +} + +FrequencyDisplayPlot { + qproperty-max_fft_color: palegreen; + qproperty-min_fft_color: palegreen; + qproperty-marker_lower_intensity_color: white; + qproperty-marker_upper_intensity_color: red; + qproperty-marker_lower_intensity_visible: false; + qproperty-marker_upper_intensity_visible: false; + qproperty-marker_noise_floor_amplitude_color: red; + qproperty-marker_noise_floor_amplitude_visible: false; +} + +QwtPlotCanvas +{ + border: 1px solid White; + border-radius: 10px; +} + +QwtScaleWidget +{ + font-size: 14px; +} + +QwtLegend +{ + padding: 3px; + margin: 3px; + font-size: 14px; +} + +QwtLegendItem +{ + padding: 2px; + margin: 2px; +} + +QLineEdit, +QPlainTextEdit, +QComboBox, +QMenu { + selection-color: black; + selection-background-color: lightgrey; + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 black, stop: 1 rgb(128, 128, 128)); + border: 1px solid gray; + padding: 2px; + border-radius: 3px; +} + +QPushButton, +QToolButton { + selection-color: black; + selection-background-color: white; + background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 black, stop: 1 rgb(128, 128, 128)); + border: 1px solid gray; + padding: 2px; + border-radius: 3px; +} + +QTabWidget::pane { + border: 1px solid white; +} + +QTabBar { + margin: 20px; + padding: 20px; +} + +QTabBar::tab { + background-color: rgb(100, 100, 100); + border: 1px solid white; + padding: 5px; +} + +QTabBar::tab:first { + border-top-left-radius: 4px; +} + +QTabBar::tab:last { + border-top-right-radius: 4px; +} + +QTabBar::tab:selected { + background-color: rgb(200, 200, 200); + color: black; +} + + diff --git a/gr-qtgui/examples/pyqt_example_c.py b/gr-qtgui/examples/pyqt_example_c.py index 618b539b7..294964479 100755 --- a/gr-qtgui/examples/pyqt_example_c.py +++ b/gr-qtgui/examples/pyqt_example_c.py @@ -144,6 +144,10 @@ class my_top_block(gr.top_block): fftsize = 2048 self.qapp = QtGui.QApplication(sys.argv) + ss = open('dark.qss') + sstext = ss.read() + ss.close() + self.qapp.setStyleSheet(sstext) src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) diff --git a/gr-qtgui/examples/pyqt_freq_c.py b/gr-qtgui/examples/pyqt_freq_c.py index a645e0869..5f891f893 100755 --- a/gr-qtgui/examples/pyqt_freq_c.py +++ b/gr-qtgui/examples/pyqt_freq_c.py @@ -144,6 +144,10 @@ class my_top_block(gr.top_block): npts = 2048 self.qapp = QtGui.QApplication(sys.argv) + ss = open('dark.qss') + sstext = ss.read() + ss.close() + self.qapp.setStyleSheet(sstext) src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) diff --git a/gr-qtgui/examples/pyqt_time_c.py b/gr-qtgui/examples/pyqt_time_c.py index a9e73b52c..ba5980a05 100755 --- a/gr-qtgui/examples/pyqt_time_c.py +++ b/gr-qtgui/examples/pyqt_time_c.py @@ -144,6 +144,10 @@ class my_top_block(gr.top_block): npts = 2048 self.qapp = QtGui.QApplication(sys.argv) + ss = open('dark.qss') + sstext = ss.read() + ss.close() + self.qapp.setStyleSheet(sstext) src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) diff --git a/gr-qtgui/examples/pyqt_waterfall_c.py b/gr-qtgui/examples/pyqt_waterfall_c.py index c1c5f1f88..eb7e731df 100755 --- a/gr-qtgui/examples/pyqt_waterfall_c.py +++ b/gr-qtgui/examples/pyqt_waterfall_c.py @@ -144,6 +144,10 @@ class my_top_block(gr.top_block): npts = 2048 self.qapp = QtGui.QApplication(sys.argv) + ss = open('dark.qss') + sstext = ss.read() + ss.close() + self.qapp.setStyleSheet(sstext) src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) |