Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

View File

@@ -0,0 +1,529 @@
/* Argentium.qss */
/* Updated 09/20/21 */
QMainWindow {
background: #202020;
}
QToolTip
{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid black;
padding: 1px;
border-radius: 2px;
color: black;
opacity: 200;
}
/** Pushbuttons **/
QToolButton,
QPushButton {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: #90aaff;
}
QPushButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 1px solid #e0e0e0;
}
QPushButton:pressed,
QPushButton:checked {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid #e0e0e0;
color: black;
}
QPushButton#btn_home_all[ihomed=true] {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid #e0e0e0;
color: black;
}
QPushButton#btn_home_all[homed=false] {
color: red;
}
ActionButton#action_machine_on {
color: #ff0000;
}
ActionButton#action_machine_on:checked {
color: black;
}
/** Checkboxes **/
QCheckBox {
spacing: 5px;
font: 10pt "Lato Heavy";
color: #e0e0e0;
margin-bottom: 2px;
}
QCheckBox:disabled {
color: #A0A0A0;
}
QCheckBox::indicator {
width: 18px;
height: 18px;
}
QCheckBox::indicator:unchecked {
image: url(:/buttons/images/unchecked.png);
}
QCheckBox::indicator:checked {
image: url(:/buttons/images/checked.png);
}
/** ComboBoxes **/
QComboBox {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
border: 1px solid black;
border-radius: 2px;
min-width: 100px;
padding: 1px 0px 1px 8px;
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QComboBox::drop-down {
subcontrol-origin: margin;
subcontrol-position: top right;
width: 24px;
}
QComboBox::item {
background-color: #303030;
color: #e0e0e0;
}
QComboBox::item:selected {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid #e0e0e0;
color: #202020;
}
QComboBox::Indicator {
background-color: transparent;
}
/** Labels **/
QLabel {
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
StatusLabel,
StateLabel,
QLineEdit {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid #e0e0e0;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: black;
}
StatusLabel#lbl_gcodes,
StatusLabel#lbl_mcodes {
background: transparent;
border: none;
color: #e0e0e0;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
DROLabel {
background: #202020;
border: 1px solid #e0e0e0;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00aaff;
}
DROLabel[isHomed=false] {
color: red;
}
/** Sliders **/
QSlider::groove:horizontal {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #606060, stop:1 #202020);
height: 12px;
border-bottom: 2px solid #909090;
border-right: 2px solid #909090;
}
QSlider::groove:vertical {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #606060, stop:1 #202020);
width: 12px;
border-top: 2px solid #303030;
border-left: 2px solid #303030;
border-bottom: 2px solid #909090;
border-right: 2px solid #909090;
}
QSlider::sub-page:horizontal {
margin: 4px;
background-color: #00aaff;
}
QSlider::add-page:vertical {
margin: 4px;
background-color: #00aaff;
}
QSlider::handle:horizontal {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid black;
width: 20px;
margin-top: -9px;
margin-bottom: -9px;
border-radius: 2px;
}
QSlider::handle:vertical {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid black;
height: 20px;
margin-left: -9px;
margin-right: -9px;
border-radius: 2px;
}
/** Status Adjustment Bars **/
StatusAdjustmentBar > QProgressBar {
}
#adj_maxv_ovr > QToolButton,
#adj_rapid_ovr > QToolButton,
#adj_feed_ovr > QToolButton,
#adj_linear_jog > QToolButton,
#adj_angular_jog > QToolButton,
#adj_spindle_ovr > QToolButton {
min-width: 40px;
min-height: 40px;
}
QProgressBar {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid #e0e0e0;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: black;
}
QProgressBar::chunk:horizontal {
margin: 2px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #808080, stop:1 #00aaff);
}
/** Tables **/
QTableView,
QListView,
QTreeView {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(80, 80, 80, 255), stop:1 rgba(0, 0, 0, 255));
selection-background-color: transparent;
qproperty-alternatingRowColors: false;
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QTableView::item:hover,
QListView::item:hover,
QTreeView::item:hover {
border: 1px solid #e0e0e0;
}
QTableView::item:pressed,
QTreeView::item:pressed {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
color: #202020;
}
QTableView::item:selected:active,
QTreeView::item:selected:active,
QListView::item:selected:active {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
color: #202020;
}
QTableView#tooloffsetview {
qproperty-styleColorSelection: #404040;
qproperty-styleColorHighlight: #606060;
}
QTableView#offset_table {
qproperty-styleColorHighlight: #606060;
}
QHeaderView {
background-color: #404040;
margin: 0px;
padding: 0px;
font: 14px "Lato Heavy";
}
QHeaderView::section {
color: #e0e0e0;
padding: 5px;
text-align: center;
}
QHeaderView::section::vertical {
border-top: 1px solid #76797C;
color: #e0e0e0;
}
QHeaderView::section::vertical {
border-top: transparent;
}
QHeaderView::section::horizontal {
border-left: 1px solid #e0e0e0;
color: #e0e0e0;
}
QHeaderView::section::horizontal {
border-left: transparent;
}
/** ScrollBars **/
QScrollBar:horizontal {
background: #606060;
margin: 0px 20px 0px 20px;
height: 20px;
}
QScrollBar::handle:horizontal {
background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:1, stop:0 #606060, stop:1 #e0e0e0);
border: 1px solid black;
min-width: 20px;
border-radius: 2px;
}
QScrollBar::add-line:horizontal {
width: 20px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
margin: 0px 0px 0px 0px;
height: 20px;
width: 20px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar:vertical {
background-color: #606060;
margin: 20px 0px 20px 0px;
width: 20px;
}
QScrollBar::handle:vertical {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #808080, stop:1 #e0e0e0);
border: 1px solid black;
min-height: 20px;
border-radius: 4px;
}
QScrollBar::sub-line:vertical {
height: 20px;
width: 20px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical {
margin: 0px 0px 0px 0px;
height: 20px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical {
background: none;
}
/** Tab Widget **/
QTabWidget::pane {
border: 1px solid gray;
top:-1px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
}
QTabBar::tab {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #303030, stop:1 #909090);
border: 1px solid black;
border-radius: 2px;
min-height: 30px;
min-width: 100px;
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QTabBar::tab:selected {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
color: #202020;
}
/** Miscellaneous **/
.QFrame {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid #e0e0e0;
border-radius: 6px;
}
.QFrame#frame_lower {
background: transparent;
border: none;
}
QGroupBox {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid #c0c0c0;
border-radius: 6px;
margin-top: 1ex;
font: 10pt "Lato Heavy";
}
QGroupBox::Title {
subcontrol-origin: margin;
subcontrol-position: top-center;
padding: 0 4px;
color: #e0e0e0;
}
QWidget:disabled {
color: #454545;
background-color: #323232;
}
QPlainTextEdit,
QTextEdit {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(80, 80, 80, 255), stop:1 rgba(0, 0, 0, 255));
color: #e0e0e0;
}
QHeaderView::section {
background-color: #404040;
color: #e0e0e0;
padding: 5px;
}
QStackedWidget {
border: none;
}
QListView::item:selected {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
color: #202020;
}
QDialog {
background-color: gray;
}
QDialog QPushButton {
width: 100px;
height: 40px;
}
QMenu {
background-color: gray;
color: #e0e0e0;}
QMenu::item:selected {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #808080, stop:1 #e0e0e0);
color: #202020;
}
QStatusBar {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0.7, y2:0, stop:0 #202020, stop:1 #606060);
color: #e0e0e0;
}
/** Joypads **/
JoyPad {
qproperty-HighlightColor: #00aaff;
}
/** GCode Display **/
EditorBase {
qproperty-styleColorBackground: #202020;
qproperty-styleColorMarginBackground: #303030;
qproperty-styleColorMarginText: #00aaff;
qproperty-styleColorMarkerBackground: #505050;
qproperty-styleColorSelectionBackground: #006aff;
qproperty-styleColorSelectionText: #ffffff;
qproperty-styleFont: "DejaVu Sans Mono,10,-1,5,50,0,0,0,1,0";
qproperty-styleFont1: "DejaVu Sans Mono,9,-1,5,50,0,0,0,1,0";
qproperty-styleFont2: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFont3: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFont4: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFont5: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFont6: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFont7: "DejaVu Sans Mono,10,-1,5,90,0,0,0,1,0";
qproperty-styleFontMargin: "DejaVu Sans Mono,8,-1,5,50,0,0,0,1,0";
qproperty-styleColor0: #efefef; /* default */
qproperty-styleColor1: #655d5d; /* LineNo & Comments */
qproperty-styleColor2: #cf4949; /* Gcodes */
qproperty-styleColor3: #f06e3b; /* Mcodes */
qproperty-styleColor4: #7272ca; /* Axes */
qproperty-styleColor5: #fd5187; /* Other (feed, spindle, radius, etc) */
qproperty-styleColor6: #8282aa; /* Axes Values */
qproperty-styleColor7: #cd6197; /* Other Values */
}
/* warning colors for SPINDLE overrides if out of normal range*/
#slider_spindle_ovr {
qproperty-alertOver: 105.0;
}
#slider_spindle_ovr {
qproperty-alertUnder: 75.1;
}
#slider_spindle_ovr[alertState='over'] {
background: yellow;
}
#slider_spindle_ovr[alertState='under'] {
background: red;
}
/* warning colors for FEED overrides if out of normal range*/
#slider_feed_ovr {
qproperty-alertOver: 105.0;
}
#slider_feed_ovr {
qproperty-alertUnder: 75.1;
}
#slider_feed_ovr[alertState='over'] {
background: red;
}
#slider_feed_ovr[alertState='under'] {
background: yellow;
}
/* warning colors for RAPID overrides if out of normal range*/
#slider_rapid_ovr {
qproperty-alertUnder: 75.1;
}
#slider_rapid_ovr[alertState='under'] {
background: yellow;
}
QScrollArea > QWidget > QWidget {
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
}

View File

@@ -0,0 +1,489 @@
QMainWindow {
/* background: url(images/brushed_metal.png);*/
background: #404040;
}
QStatusBar {
background-color: red;
font: 10pt "Lato Heavy";
color: black;
}
QPushButton,
ActionButton,
SystemToolButton,
AxisToolButton,
QToolButton {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid brown;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
QToolButton:checked,
QToolButton:pressed {
border-color: #00FF00;
color: #00FF00;
}
QPushButton:checked,
QPushButton:pressed {
border-color: #00FF00;
color: #00FF00;
}
QPushButton:hover,
ActionButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 1px solid #00FF00;
}
QPushButton:disabled,
ActionButton:disabled,
AxisToolButton:disabled,
SystemToolButton:disabled {
color: gray;
}
ActionButton#action_machine_on {
/* border: none;*/
color: #FF0000;
}
ActionButton#action_machine_on[isStateOn=true] {
color: #00FF00;
}
ActionButton#action_estop {
border-color: #00FF00;
color: #00FF00;
}
ActionButton#action_estop:checked {
border-color: #FF0000;
color: #FF0000;
}
QLabel {
font: 10pt "Lato Heavy";
color: white;
}
DROLabel,
QLabel#label_axis_x,
QLabel#label_axis_y,
QLabel#label_axis_z,
QLabel#label_axis_4,
QLabel#label_axis_5 {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00FF00;
}
DROLabel[isHomed=false] {
color: red;
}
QLabel#lbl_cycle_start,
QLabel#lbl_home_all {
font: 10pt "Lato Heavy";
color: white;
}
StatusLabel, StateLabel {
background: black;
border: 1px solid gray;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
QLineEdit {
background: black;
border: 1px solid gray;
border-radius: 4px;
font: 10pt "Lato Heavy";
color:white;
}
CalculatorDialog QLineEdit {
font: 16pt "Lato Heavy";
}
QLineEdit#mdiline{
background: white;
color: black;
}
QLineEdit#lineEdit_statusbar{
background: #404040;
color: #00FF00;
}
QTextEdit {
background: rgb(250,250,250);
font: 10pt "Lato";
}
QCheckBox {
font: 10pt "Lato Heavy";
color: white;
margin: 4px;
}
QCheckBox::disabled {
height: 14px;
width: 14px;
}
QCheckBox::indicator:checked {
image: url(:/buttons/images/checked.png);
background-color: #404040;
height: 14px;
width: 14px;
}
QCheckBox::indicator:unchecked {
image: url(:/buttons/images/unchecked.png);
background-color: white;
height: 14px;
width: 14px;
}
QComboBox {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
padding-left: 4px;
padding-right: 4px;
min-width: 100px;
font: 10pt "Lato Heavy";
color: white;
}
QComboBox QAbstractItemView {
background-color: #404040;
color: white;
}
QComboBox:drop-down {
subcontrol-origin: margin;
subcontrol-position: top right;
width: 20px;
}
QComboBox::item {
background-color: #404040;
color: white;
}
QComboBox::item:selected {
background-color: #303030;
color: #00FF00;
}
QComboBox::Indicator {
background-color: transparent;
color: transparent;
}
QGroupBox {
border: 1px solid black;
border-radius: 4px;
margin-top: 16px;
font: 10pt "Lato Heavy";
}
QGroupBox::title {
subcontrol-origin: margin;
padding: 0 3px;
color: black;
}
QProgressBar {
background-color: rgb(250, 250, 250);
border: 1px solid black;
border-radius: 4px;
font: 9pt "Lato Heavy";
}
QProgressBar::chunk {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
}
.QFrame {
background: #505050;
border: 1px solid orange;
}
QFrame#frame_cycle_start,
QFrame#frame_home_all {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
QFrame#frame_cycle_start:hover,
QFrame#frame_home_all:hover {
border: 1px solid #00FF00;
}
QHeaderView {
background-color: #B0B0D0;
border: 0px transparent #32414B;
padding: 0px;
margin: 0px;
border-radius: 0px;
font: 10pt "Lato Heavy";
}
QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
width: 60px;
}
OriginOffsetView, ToolOffsetView {
font: 10pt "Lato Heavy";
}
QSlider::groove:horizontal {
background: white;
height: 12px;
border-radius: 4px;
}
QSlider::groove:vertical {
background: white;
width: 12px;
border-radius: 4px;
}
QSlider::sub-page:horizontal {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1, stop: 0 #bbf, stop: 1 #55f);
border: 1px solid black;
height: 10px;
border-radius: 4px;
}
QSlider::sub-page:vertical {
background: white;
border: 1px solid black;
width: 10px;
border-radius: 4px;
}
QSlider::add-page:horizontal {
background: #fff;
border: 1px solid black;
height: 10px;
border-radius: 4px;
}
QSlider::add-page:vertical {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #66e, stop: 1 #bbf);
border: 1px solid black;
width: 10px;
border-radius: 4px;
}
QSlider::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc);
border: 1px solid black;
width: 16px;
margin-top: -6px;
margin-bottom: -6px;
border-radius: 4px;
}
QSlider::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc);
border: 1px solid black;
height: 16px;
margin-left: -6px;
margin-right: -6px;
border-radius: 4px;
}
QSlider::handle:horizontal:hover, 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::sub-page:horizontal:disabled, QSlider::sub-page:vertical:disabled {
background: #bbb;
border-color: #999;
}
QSlider::add-page:horizontal:disabled,
QSlider::add-page:vertical:disabled{
background: #eee;
border-color: #999;
}
QSlider::handle:horizontal:disabled,
QSlider::handle:vertical:disabled{
background: #eee;
border: 1px solid #aaa;
border-radius: 4px;
}
/* warning colors for overrides if out of normal range*/
#slider_spindle_ovr[alertState='over'] {
background: red;
}
#slider_feed_ovr[alertState='over'] {
background: red;
}
#slider_feed_ovr[alertState='under'] {
background: yellow;
}
QDialog,
LcncDialog,
ToolDialog,
CloseDialog,
EntryDialog,
CalculatorDialog {
background-color: gray;
}
LcncDialog QPushButton,
ToolDialog QPushButton,
AboutDialog QPushButton {
width: 100px;
height: 40px;
}
RunFromLineDialog QPushButton,
CalculatorDialog QPushButton,
EntryDialog QPushButton,
CloseDialog QPushButton {
width: 80px;
height: 40px;
}
QMenu {
background-color: #ABABAB; /* sets background of the menu */
border: 1px solid black;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: gray;
}
QMenu::item:selected { /* when user selects item using mouse or keyboard */
background-color: darkblue;
}
QHeaderView::section {
background-color: foregnd;
color: white;
border: 1px solid #6c6c6c;
}
QSpinBox {
padding-right: 15px; /* make room for the arrows */
border-width: 3px;
height: 40px;
}
QSpinBox::down-button {
width: 20px;
height: 20px;
}
QSpinBox::down-arrow {
width: 20px;
height: 20px;
}
QSpinBox::up-button {
width: 20px;
height: 20px;
}
QSpinBox::up-arrow {
width: 20px;
height: 20px;
}
/** Tab Widget **/
QTabWidget::pane {
border: 1px solid gray;
top:-1px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
}
/* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid black;
border-bottom-color: black; /* same as the pane color */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
min-height: 3.5ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: #00FF00;
border-bottom-color: #00FF00;; /* same as pane color */
}
QTabBar::tab:!selected {
margin-top: 2px; /* make non-selected tabs look smaller */
}
/** GCode Display **/
EditorBase {
qproperty-styleColorBackground: #202020;
qproperty-styleColorMarginBackground: #303030;
qproperty-styleColorMarginText: #00aaff;
qproperty-styleColorMarkerBackground: #505050;
qproperty-styleColorSelectionBackground: #006aff;
qproperty-styleColorSelectionText: #ffffff;
qproperty-styleFont: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0"; /* default */
qproperty-styleFont0: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0";
qproperty-styleFont1: "DejaVu Sans Mono,12,-1,5,50,1,0,0,1,0";
qproperty-styleFont2: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont3: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont4: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont5: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont6: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont7: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFontMargin: "DejaVu Sans Mono,8,-1,5,50,0,0,0,1,0";
qproperty-styleColor0: #efefef; /* default */
qproperty-styleColor1: white; /* LineNo & Comments */
qproperty-styleColor2: blue; /* Gcodes */
qproperty-styleColor3: lightgreen; /* Mcodes */
qproperty-styleColor4: yellow; /* Axes */
qproperty-styleColor5: red; /* Other (feed, spindle, radius, etc) */
qproperty-styleColor6: #8282aa; /* Axes Values */
qproperty-styleColor7: #cd6197; /* Other Values */
}

View File

@@ -0,0 +1,568 @@
/* brushed_metal_color stylesheet designed for qtdragon/hd */
QMainWindow {
background-image: url(:/images/images/brushed_metal.png);
}
/* comment for blur effect with dialogs */
#screen_options {qproperty-focusBlur_option: false;}
QPushButton,
ActionButton,
SystemToolButton,
OffsetToolButton,
AxisToolButton,
QToolButton {
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1.6, stop:0 rgba(160, 160, 160, 225), stop:0.6 rgba(110, 110, 110, 225));
border: 2px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QPushButton:checked,
QPushButton:pressed,
SystemToolButton:checked {
border-color: blue;
color: #0000FF;
}
QPushButton:hover,
ActionButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 2px solid blue;
}
QPushButton:disabled,
ActionButton:disabled,
AxisToolButton:disabled,
QToolButton:disabled {
color: #cacaca;
}
ActionButton#action_machine_on {
color: #FF0000;
}
ActionButton#plus_jogbutton_0,
ActionButton#minus_jogbutton_0 {
border-radius: 4px;
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(180, 255, 180,160), stop:0.6 rgba(80, 255, 80, 160));
}
ActionButton#plus_jogbutton_1,
ActionButton#minus_jogbutton_1 {
border-radius: 4px;
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(255, 180, 180,160), stop:0.6 rgba(255, 80, 80,160));
}
ActionButton#plus_jogbutton_2,
ActionButton#minus_jogbutton_2 {
border-radius: 4px;
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(180, 180, 255,160), stop:0.6 rgba(80, 80, 255,160));
}
#plus_jogbutton_3,
#minus_jogbutton_3 {
border-radius: 4px;
font: 17pt "Lato Heavy";
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(203, 145, 27,250), stop:0.6 rgba(173, 105, 6, 180));
}
#plus_jogbutton_4,
#minus_jogbutton_4 {
border-radius: 4px;
font: 17pt "Lato Heavy";
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(193, 107, 188,250), stop:0.6 rgba(150, 100,140, 200));
}
ActionButton#action_machine_on[isStateOn=true] {
color: #00FF00;
}
ActionButton#action_estop {
color: #00FF00;
background: qlineargradient(spread:reflect, x1:0.5, y:0, x2:0.5, y2:1, stop:0 rgba(255, 120, 120,150), stop:0.6 rgba(255, 20, 20,150));
}
ActionButton#action_estop:checked {
color: #000000;
}
QComboBox {
border-radius: 4px;
}
QLabel {
font: 10pt "Lato Heavy";
color: black;
}
#axis_select_0 {
font: 16pt "Lato Heavy";
color: rgb(80, 255, 80);
}
#axis_select_1 {
font: 16pt "Lato Heavy";
color: rgb(255, 80, 80);
}
#axis_select_2 {
font: 16pt "Lato Heavy";
color: rgb(80, 80, 255);
}
#axis_select_3 {
font: 16pt "Lato Heavy";
color: rgb(233, 155, 37);
}
#axis_select_4 {
font: 16pt "Lato Heavy";
color: rgb(223, 167, 198);
}
#jogincrements_linear,
#jogincrements_angular {
font: 11pt "Lato Heavy";
}
StatusLabel,
StateLabel {
background: rgb(250, 250, 250);
border: 1px solid;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
font: 10pt "Lato Heavy";
color: black;
border-radius: 3px;
}
StatusLabel#status_rpm,
Label {
background: #303030;
border: 1px solid black;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00FF00;
border-radius: 3px;
}
StatusLabel#status_act_feedrate {
background: #303030;
color: #00FF00;
font: 13pt "Lato Heavy";
}
DROLabel {
background: #303030;
border: 1px solid black;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00FF00;
qproperty-imperial_template: '%9.4f';
qproperty-metric_template: '%10.3f';
qproperty-angular_template: '%11.3f';
}
DROLabel[isHomed=false] {
color: red;
}
QLineEdit {
background: rgb(250, 250, 250);
border: 1px solid;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
font: 10pt "Lato Heavy";
border-radius: 4px;
color: #000000;
}
QLineEdit#mdiline {
font: 14pt ;
}
QLineEdit#lineEdit_statusbar {
font: 12pt "Lato Heavy";
}
QCheckBox {
font: 10pt "Lato Heavy";
}
QCheckBox::indicator {
width: 12px;
height: 12px;
}
QComboBox {
border: 1px solid black;
min-width: 100px;
font: 10pt "Lato Heavy";
color: black;
}
QGroupBox {
border: 1px solid black;
border-radius: 4px;
margin-top: 16px;
font: 10pt "Lato Heavy";
}
QGroupBox::title {
subcontrol-origin: margin;
padding: 0 3px;
color: black;
}
QProgressBar {
background-color: rgb(250, 250, 250);
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QProgressBar::chunk {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
}
QFrame#frame_cycle_start,
QFrame#frame_home_all {
border: 2px solid black;
border-radius:4px;
font: 10pt "Lato Heavy";
}
QFrame#frame_cycle_start:hover,
QFrame#frame_home_all:hover {
border: 2px solid blue;
}
QHeaderView {
background-color: #B0B0D0;
border: 0px transparent #32414B;
padding: 0px;
margin: 0px;
border-radius: 0px;
font: 10pt "Lato Heavy";
}
QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
width: 60px;
}
OriginOffsetView, ToolOffsetView {
font: 10pt "Lato Heavy";
}
QSlider::groove:horizontal {
border: 1px black;
height: 12px;
}
QSlider::groove:vertical {
border: 1px black;
width: 12px;
}
QSlider::sub-page:horizontal {
background: qlineargradient( y2: 0.5,x1: 1, y1: 0.5 stop: 0 #66f stop: 1 #99f);
border: 1px solid #777;
}
QSlider::add-page:horizontal {
background-color: rgb(110, 110, 110);
}
QSlider::add-page:vertical {
background: qlineargradient( x1:0.5, y1:0, x2:0.5, y2:1 stop: 0 #66f, stop: 1 #99f);
border: 1px solid #777;
}
QSlider::sub-page:vertical {
background-color: rgb(110, 110, 110);
}
QSlider::handle:horizontal {
background: lightgray;
border: 1px solid black;
width: 18px;
margin-top: -8px;
margin-bottom: -8px;
border-radius: 3px;
}
QSlider::handle:vertical {
background: lightgray;
border: 1px solid black;
height: 18px;
margin-left: -8px;
margin-right: -8px;
border-radius: 3px;
}
#slider_feed_ovr {
qproperty-alertOver: 105.0;
}
#slider_feed_ovr {
qproperty-alertUnder: 60;
}
#slider_feed_ovr[alertState='over'] {
background: qradialgradient(spread:pad, cx:1.2, cy:0.5, radius:0.63, fx:1, fy:0.5, stop:0.406912 rgba(255, 0, 0, 255), stop:1 rgba(255, 255, 255, 0));
}
#slider_feed_ovr[alertState='under'] {
background: qradialgradient(spread:pad, cx:-0.15, cy:0.5, radius:0.8, fx:0, fy:0.5, stop:0.326342 rgba(255, 255, 0, 255), stop:1 rgba(255, 255, 255, 0));
}
#slider_spindle_ovr {
qproperty-alertOver: 110.0;
}
#slider_spindle_ovr {
qproperty-alertUnder: 75;
}
#slider_spindle_ovr[alertState='over'] {
background: qradialgradient(spread:pad, cx:1.25, cy:0.5, radius:0.7, fx:1, fy:0.5, stop:0.406912 rgba(255, 255, 0, 255), stop:1 rgba(255, 255, 255, 0));
}
#slider_spindle_ovr[alertState='under'] {
background: qradialgradient(spread:pad, cx:-0.15, cy:0.5, radius:0.7, fx:0, fy:0.5, stop:0.326342 rgba(255, 0, 0, 255), stop:1 rgba(255, 255, 255, 0));
}
QDialog{
background-image: url(:/images/images/brushed_metal.png);
}
ToolDialog QPushButton, AboutDialog QPushButton{
width: 100px;
height: 40px;
}
EntryDialog QPushButton, CloseDialog QPushButton{
width: 80px;
height: 40px;
}
QTabWidget::pane { /* The tab widget frame */
border-top: 0px solid #C2C7CB;
}
LcncDialog QPushButton,
ToolDialog QPushButton,
AboutDialog QPushButton {
width: 80px;
height: 40px;
}
RunFromLineDialog QPushButton,
CalculatorDialog QPushButton,
EntryDialog QPushButton,
CloseDialog QPushButton {
font: 12pt "Lato Heavy";
width: 80px;
height: 40px;
}
CalculatorDialog QLineEdit {
font: 16pt "Lato Heavy";
}
/** Dialogs **/
QDialog QPushButton {
width: 100px;
height: 40px;
}
/* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid black;
border-bottom-color: black; /* same as the pane color */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
min-height: 3.5ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: blue;
border-bottom-color: blue; /* same as pane color */
}
QTabBar::tab:!selected {
margin-top: 2px; /* make non-selected tabs look smaller */
}
ToolOffsetView {
font: 12pt "Lato Heavy";
qproperty-imperial_template: '%9.4f';
qproperty-metric_template: '%10.3f';
}
OriginOffsetView {
font: 11pt "Lato Heavy";
qproperty-imperial_template: '%9.4f';
qproperty-metric_template: '%10.3f';
}
/** Plain Text Edit **/
QTextEdit,
QPlainTextEdit,
QListWidget {
background: #c0bfbc;
font: 12pt "Lato Heavy";
}
QMenu {
font: 14pt "Lato Heavy";
background: #b0b0b0;
border: 2px solid black;
}
DROLabel{
qproperty-showLast: false;
qproperty-showDivide: false;
qproperty-showGotoOrigin: true;
qproperty-showZeroOrigin: false;
qproperty-showSetOrigin: false;
}
AxisToolButton{
qproperty-showLast: true;
qproperty-showDivide: true;
qproperty-showGotoOrigin: false;
qproperty-showZeroOrigin: true;
qproperty-showSetOrigin: true;
}
#screen_options {
qproperty-user1Color: white; /* default status */
qproperty-user2Color: #fff466; /* warning status */
qproperty-user3Color: #ff7882; /* critical status */
qproperty-user4Color: #ffaa00; /* MPG select */
qproperty-user5Color: #ff0000; /* Cycle Start select */
}
/** GCode Display **/
EditorBase {
qproperty-styleColorBackground: #404040;
qproperty-styleColorMarginBackground: #000000;
qproperty-styleColorMarginText: #ccddcc;
qproperty-styleColorMarkerBackground: #000055;
qproperty-styleColorSelectionBackground: #006aff;
qproperty-styleColorSelectionText: #ffffff;
qproperty-styleFont: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0"; /* default */
qproperty-styleFont0: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0";
qproperty-styleFont1: "DejaVu Sans Mono,12,-1,5,50,1,0,0,1,0";
qproperty-styleFont2: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont3: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont4: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont5: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont6: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont7: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFontMargin: "DejaVu Sans Mono,8,-1,5,50,1,0,0,1,0";
qproperty-styleColor0: #ffffff; /* default */
qproperty-styleColor1: white; /* LineNo & Comments */
qproperty-styleColor2: #0099ff; /* Gcodes */
qproperty-styleColor3: lightgreen; /* Mcodes */
qproperty-styleColor4: yellow; /* Axes */
qproperty-styleColor5: #ff0000; /* Other (feed, spindle, radius, etc) */
qproperty-styleColor6: #aaaadf; /* Axes Values */
qproperty-styleColor7: #cd6197; /* Other Values */
}
GcodeEditor QToolButton {
min-width: 35;
height: 35;
font: 12pt "Lato Heavy";
}
GcodeEditor QLineEdit {
width: 120;
height: 26;
font: 12pt "Lato Heavy";
}
MacroTab QPushButton {
width: 80px;
height: 35px;
font: 12pt "Lato Heavy";
}
MacroTab QLabel {
font: 14pt "Lato Heavy";
}
TouchSpinBox LineEdit {
font: 14pt "Lato Heavy";
max-width: 60px;
}
TouchSpinBox QPushButton {
width: 60px;
height: 100px;
}
MacroTab QCheckBox::indicator {
width: 25px;
height: 25px;
}
MacroTab QRadioButton::indicator {
width: 22px;
height: 22px;
}
QScrollArea > QWidget > QWidget {
background-image: url(:/images/images/brushed_metal.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,13 @@
#!/bin/bash
if [ $# -eq 0 ]; then
echo -e '\nlocale is missing\n'
exit
elif [ ${#1} -ne 2 ]; then
echo -e '\nlocale needs to be two characters\n'
exit
fi
echo -e '\ncreating language translation file qtdragon_'"$1"'.ts\n'
pylupdate5 ./*.py ../*.py ../../../../../lib/python/qtvcp/widgets/*.py -ts "qtdragon_$1.ts"

View File

@@ -0,0 +1,278 @@
QMainWindow {
background: url(:/images/images/qtdragon/images/brushed_metal.png);
}
QPushButton,
ActionButton,
SystemToolButton,
AxisToolButton {
border: 2px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QPushButton:checked,
QPushButton:pressed {
border-color: blue;
color: #0000FF;
}
QPushButton:hover,
ActionButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 2px solid blue;
}
QPushButton:disabled,
ActionButton:disabled {
color: gray;
}
ActionButton#action_machine_on {
border: none;
color: #FF0000;
}
ActionButton#action_machine_on[isStateOn=true] {
color: #00FF00;
}
ActionButton#action_estop {
border: none;
color: #00FF00;
}
ActionButton#action_estop:checked {
color: #FF0000;
}
QLabel {
font: 10pt "Lato Heavy";
color: black;
}
QLabel#label_axis_x,
QLabel#label_axis_y,
QLabel#label_axis_z,
QLabel#label_axis_a {
border: 2px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: blue;
}
QLabel#lbl_cycle_start,
QLabel#lbl_home_all {
font: 10pt "Lato Heavy";
}
StatusLabel,
StateLabel {
background: rgb(250, 250, 250);
font: 10pt "Lato Heavy";
color: black;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
DROLabel {
background: #202020;
border: 1px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00FF00;
}
DROLabel[isHomed=false] {
color: red;
}
QLineEdit {
background: rgb(250, 250, 250);
border: 1px solid;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
font: 10pt "Lato Heavy";
}
QTextEdit {
background: rgb(250,250,250);
font: 10pt "Lato";
}
QCheckBox {
font: 10pt "Lato Heavy";
}
QCheckBox::indicator {
width: 12px;
height: 12px;
}
QComboBox {
border: 1px solid black;
width: 20px;
font: 10pt "Lato Heavy";
color: black;
}
QGroupBox {
border: 1px solid black;
border-radius: 4px;
margin-top: 16px;
font: 10pt "Lato Heavy";
}
QGroupBox::title {
subcontrol-origin: margin;
padding: 0 3px;
color: black;
}
QProgressBar {
background-color: rgb(250, 250, 250);
border: 1px solid black;
border-radius: 4px;
font: 9 pt "Lato Heavy";
}
QProgressBar::chunk {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
}
.QFrame {
}
QFrame#frame_cycle_start,
QFrame#frame_home_all {
border: 2px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QFrame#frame_cycle_start:hover,
QFrame#frame_home_all:hover {
border: 2px solid blue;
}
QHeaderView {
background-color: #B0B0D0;
border: 0px transparent #32414B;
padding: 0px;
margin: 0px;
border-radius: 0px;
font: 10pt "Lato Heavy";
}
QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
width: 60px;
}
OriginOffsetView, ToolOffsetView {
font: 10pt "Lato Heavy";
}
QSlider::groove:horizontal {
border: 1px black;
height: 12px;
}
QSlider::groove:vertical {
border: 1px black;
width: 12px;
}
QSlider::sub-page:horizontal {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf stop: 1 #55f);
border: 1px solid #777;
border-radius: 3px;
height: 12px;
}
QSlider::add-page:horizontal {
background: white;
border: 1px solid #777;
border-radius: 3px;
width: 12px;
}
QSlider::add-page:vertical {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
border: 1px solid #777;
border-radius: 3px;
height: 12px;
}
QSlider::sub-page:vertical {
background: white;
border: 1px solid #777;
border-radius: 3px;
width: 12px;
}
QSlider::handle:horizontal {
background: lightgray;
border: 1px solid black;
width: 12px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 2px;
}
QSlider::handle:vertical {
background: lightgray;
border: 1px solid black;
height: 12px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 2px;
}
ToolDialog, EntryDialog, CloseDialog {
background: darkgray;
}
ToolDialog QPushButton, AboutDialog QPushButton{
width: 100px;
height: 40px;
}
RunFromLineDialog QPushButton,
EntryDialog QPushButton,
CloseDialog QPushButton{
width: 80px;
height: 40px;
}
QSpinBox {
padding-right: 15px; /* make room for the arrows */
border-width: 3px;
height: 40px;
}
QSpinBox::down-button {
width: 20px;
height: 20px;
}
QSpinBox::down-arrow {
width: 20px;
height: 20px;
}
QSpinBox::up-button {
width: 20px;
height: 20px;
}
QSpinBox::up-arrow {
width: 20px;
height: 20px;
}

View File

@@ -0,0 +1,35 @@
<RCC>
<qresource prefix="buttons">
<file>images/b_minus_jog_button.png</file>
<file>images/b_plus_jog_button.png</file>
<file>images/c_minus_jog_button.png</file>
<file>images/c_plus_jog_button.png</file>
<file>images/u_minus_jog_button.png</file>
<file>images/u_plus_jog_button.png</file>
<file>images/v_minus_jog_button.png</file>
<file>images/v_plus_jog_button.png</file>
<file>images/w_minus_jog_button.png</file>
<file>images/w_plus_jog_button.png</file>
<file>images/zoom.png</file>
<file>images/unchecked.png</file>
<file>images/slide_off.png</file>
<file>images/slide_on.png</file>
<file>images/checked.png</file>
<file>images/Right_arrow.png</file>
<file>images/Left_arrow.png</file>
<file>images/a_minus_jog_button.png</file>
<file>images/a_plus_jog_button.png</file>
<file>images/x_plus_jog_button.png</file>
<file>images/x_minus_jog_button.png</file>
<file>images/z_minus_jog_button.png</file>
<file>images/z_plus_jog_button.png</file>
<file>images/y_minus_jog_button.png</file>
<file>images/y_plus_jog_button.png</file>
</qresource>
<qresource prefix="images">
<file>images/atc_spindle_tool.png</file>
<file>images/brushed_metal.png</file>
<file>images/silver_dragon.png</file>
<file>images/tool_probe.png</file>
</qresource>
</RCC>

View File

@@ -0,0 +1,531 @@
QMainWindow {
/* background: url(images/brushed_metal.png);*/
background: #404040;
}
QStatusBar {
background-color: red;
font: 10pt "Lato Heavy";
color: black;
}
QPushButton,
ActionButton,
SystemToolButton,
AxisToolButton,
QToolButton {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid brown;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
QToolButton:checked,
QToolButton:pressed {
border-color: #00FF00;
color: #00FF00;
}
QPushButton:checked,
QPushButton:pressed {
border-color: #00FF00;
color: #00FF00;
}
QPushButton:hover,
ActionButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 1px solid #00FF00;
}
QPushButton:disabled,
ActionButton:disabled,
AxisToolButton:disabled,
SystemToolButton:disabled {
color: gray;
}
ActionButton#action_machine_on {
/* border: none;*/
color: #FF0000;
}
ActionButton#action_machine_on[isStateOn=true] {
color: #00FF00;
}
ActionButton#action_estop {
border-color: #00FF00;
color: #00FF00;
}
ActionButton#action_estop:checked {
border-color: #FF0000;
color: #FF0000;
}
QLabel {
font: 10pt "Lato Heavy";
color: white;
}
DROLabel,
QLabel#label_axis_x,
QLabel#label_axis_y,
QLabel#label_axis_z,
QLabel#label_axis_4,
QLabel#label_axis_5 {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #00FF00;
}
DROLabel[isHomed=false] {
color: red;
}
QLabel#lbl_cycle_start,
QLabel#lbl_home_all {
font: 10pt "Lato Heavy";
color: white;
}
StatusLabel, StateLabel {
background: black;
border: 1px solid gray;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
QLineEdit {
background: black;
border: 1px solid gray;
border-radius: 4px;
font: 10pt "Lato Heavy";
color:white;
}
CalculatorDialog QLineEdit {
font: 16pt "Lato Heavy";
}
QLineEdit#mdiline{
background: white;
color: black;
}
QLineEdit#lineEdit_statusbar{
background: #404040;
color: #00FF00;
}
QTextEdit {
background: rgb(250,250,250);
font: 10pt "Lato";
}
QCheckBox {
font: 10pt "Lato Heavy";
color: white;
margin: 4px;
}
QCheckBox::disabled {
height: 14px;
width: 14px;
}
QCheckBox::indicator:checked {
image: url(:/buttons/images/checked.png);
background-color: #404040;
height: 14px;
width: 14px;
}
QCheckBox::indicator:unchecked {
image: url(:/buttons/images/unchecked.png);
background-color: white;
height: 14px;
width: 14px;
}
QComboBox {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
padding-left: 4px;
padding-right: 4px;
min-width: 100px;
font: 10pt "Lato Heavy";
color: white;
}
QComboBox QAbstractItemView {
background-color: #404040;
color: white;
}
QComboBox:drop-down {
subcontrol-origin: margin;
subcontrol-position: top right;
width: 20px;
}
QComboBox::item {
background-color: #404040;
color: white;
}
QComboBox::item:selected {
background-color: #303030;
color: #00FF00;
}
QComboBox::Indicator {
background-color: transparent;
color: transparent;
}
QGroupBox {
border: 1px solid black;
border-radius: 4px;
margin-top: 16px;
font: 10pt "Lato Heavy";
}
QGroupBox::title {
subcontrol-origin: margin;
padding: 0 3px;
color: black;
}
QProgressBar {
background-color: rgb(250, 250, 250);
border: 1px solid black;
border-radius: 4px;
font: 9pt "Lato Heavy";
}
QProgressBar::chunk {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
}
.QFrame {
background: #505050;
border: 1px solid orange;
}
QFrame#frame_cycle_start,
QFrame#frame_home_all {
background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 140, 180, 255), stop:0.3 rgba(11, 22, 33, 255));
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: white;
}
QFrame#frame_cycle_start:hover,
QFrame#frame_home_all:hover {
border: 1px solid #00FF00;
}
QHeaderView {
background-color: #B0B0D0;
border: 0px transparent #32414B;
padding: 0px;
margin: 0px;
border-radius: 0px;
font: 10pt "Lato Heavy";
}
QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
width: 60px;
}
OriginOffsetView, ToolOffsetView {
font: 10pt "Lato Heavy";
}
QSlider::groove:horizontal {
background: white;
height: 12px;
border-radius: 4px;
}
QSlider::groove:vertical {
background: white;
width: 12px;
border-radius: 4px;
}
QSlider::sub-page:horizontal {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1, stop: 0 #bbf, stop: 1 #55f);
border: 1px solid black;
height: 10px;
border-radius: 4px;
}
QSlider::sub-page:vertical {
background: white;
border: 1px solid black;
width: 10px;
border-radius: 4px;
}
QSlider::add-page:horizontal {
background: #fff;
border: 1px solid black;
height: 10px;
border-radius: 4px;
}
QSlider::add-page:vertical {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #66e, stop: 1 #bbf);
border: 1px solid black;
width: 10px;
border-radius: 4px;
}
QSlider::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc);
border: 1px solid black;
width: 14px;
margin-top: -4px;
margin-bottom: -4px;
border-radius: 4px;
}
QSlider::handle:vertical {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #eee, stop:1 #ccc);
border: 1px solid black;
height: 14px;
margin-left: -4px;
margin-right: -4px;
border-radius: 4px;
}
QSlider::handle:horizontal:hover, 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::sub-page:horizontal:disabled, QSlider::sub-page:vertical:disabled {
background: #bbb;
border-color: #999;
}
QSlider::add-page:horizontal:disabled,
QSlider::add-page:vertical:disabled{
background: #eee;
border-color: #999;
}
QSlider::handle:horizontal:disabled,
QSlider::handle:vertical:disabled{
background: #eee;
border: 1px solid #aaa;
border-radius: 4px;
}
/* warning colors for overrides if out of normal range*/
#slider_spindle_ovr{
qproperty-alertUnder: 75;
}
#slider_spindle_ovr[alertState='over'] {
background: red;
}
#slider_spindle_ovr[alertState='under'] {
background: yellow;
}
#slider_feed_ovr[alertState='over'] {
background: red;
}
#slider_feed_ovr[alertState='under'] {
background: yellow;
}
#slider_rapid_ovr[alertState='over'] {
background: red;
}
#slider_rapid_ovr[alertState='under'] {
background: yellow;
}
#slider_maxv_ovr{
qproperty-alertUnder: 1;
}
#slider_maxv_ovr[alertState='under'] {
background: red;
}
QDialog,
LcncDialog,
ToolDialog,
CloseDialog,
EntryDialog,
CalculatorDialog {
background-color: gray;
}
LcncDialog QPushButton,
ToolDialog QPushButton,
AboutDialog QPushButton {
width: 100px;
height: 40px;
}
RunFromLineDialog QPushButton,
CalculatorDialog QPushButton,
EntryDialog QPushButton,
CloseDialog QPushButton {
width: 80px;
height: 40px;
}
QMenu {
background-color: #ABABAB; /* sets background of the menu */
border: 1px solid black;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: gray;
}
QMenu::item:selected { /* when user selects item using mouse or keyboard */
background-color: darkblue;
}
QHeaderView::section {
background-color: foregnd;
color: white;
border: 1px solid #6c6c6c;
}
QSpinBox {
padding-right: 15px; /* make room for the arrows */
border-width: 3px;
height: 40px;
}
QSpinBox::down-button {
width: 20px;
height: 20px;
}
QSpinBox::down-arrow {
width: 20px;
height: 20px;
}
QSpinBox::up-button {
width: 20px;
height: 20px;
}
QSpinBox::up-arrow {
width: 20px;
height: 20px;
}
/** Tab Widget **/
QTabWidget::pane {
border: 1px solid gray;
top:-1px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
}
/* Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget */
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid black;
border-bottom-color: black; /* same as the pane color */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
min-height: 3.5ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: #00FF00;
border-bottom-color: #00FF00;; /* same as pane color */
}
QTabBar::tab:!selected {
margin-top: 2px; /* make non-selected tabs look smaller */
}
/** GCode Display **/
EditorBase {
qproperty-styleColorBackground: #202020;
qproperty-styleColorMarginBackground: #303030;
qproperty-styleColorMarginText: #00aaff;
qproperty-styleColorMarkerBackground: #505050;
qproperty-styleColorSelectionBackground: #006aff;
qproperty-styleColorSelectionText: #ffffff;
qproperty-styleFont: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0"; /* default */
qproperty-styleFont0: "DejaVu Sans Mono,12,-1,5,50,0,0,0,1,0";
qproperty-styleFont1: "DejaVu Sans Mono,12,-1,5,50,1,0,0,1,0";
qproperty-styleFont2: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont3: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont4: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont5: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont6: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFont7: "DejaVu Sans Mono,12,-1,5,90,0,0,0,1,0";
qproperty-styleFontMargin: "DejaVu Sans Mono,8,-1,5,50,0,0,0,1,0";
qproperty-styleColor0: #efefef; /* default */
qproperty-styleColor1: white; /* LineNo & Comments */
qproperty-styleColor2: blue; /* Gcodes */
qproperty-styleColor3: lightgreen; /* Mcodes */
qproperty-styleColor4: yellow; /* Axes */
qproperty-styleColor5: red; /* Other (feed, spindle, radius, etc) */
qproperty-styleColor6: #8282aa; /* Axes Values */
qproperty-styleColor7: #cd6197; /* Other Values */
}
GcodeEditor QToolButton {
min-width: 40;
height: 40;
font: 12pt "Lato Heavy";
}
GcodeEditor QLineEdit {
width: 120;
height: 35;
font: 12pt "Lato Heavy";
}
QScrollArea > QWidget > QWidget {
background-color: #404040;
}
QTextEdit{
background-color: #9a9996;
font: 10pt "Lato Heavy";
color: white
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,21 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:28pt; font-weight:600;">QtDragon</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt;">Is a linuxcnc screen based on PyQt5/Qtvcp</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt;">for running XYZ Mills or Routers, optionally with 4th or 5th axis.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">This screen is resizable (1280x768 to 1680x1200)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Optional Z axis lift at spindle pause</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Optional laser sight control</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Optional choice of basic or versa probe screens</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Optional toolplate Z setting</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Optional auto lift spindle at pause</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Bolt circle, slab facing and NgcGui wizards</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:18pt; color:#000000;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; font-style:italic;">Designed by </span><span style=" font-size:18pt; font-weight:600; color:#0000ff;">Persei802</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; font-style:italic;">Intergrated by </span><span style=" font-size:18pt; font-weight:600; color:#0000ff;">Chris Morley </span><span style=" font-size:18pt; color:#000000;">of the Linuxcnc project</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">With much help from user's feedback - Thank you!</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:18pt; color:#000000;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Tip of the Hat to forum personality MarkoPolo :</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:18pt; color:#000000;">Thank you for continued screen layout and stylesheet updates!</span></p></body></html>

View File

@@ -0,0 +1,488 @@
QMainWindow {
background: #404040;
}
QToolTip
{
border: 1px solid black;
background-color: #202020;
padding: 1px;
border-radius: 2px;
color: #9ad58d;
opacity: 200;
}
/** Pushbuttons **/
QPushButton,
ActionButton,
SystemToolButton,
AxisToolButton,
QToolButton {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QPushButton::checked:disabled {
color: #9ad58d;
}
QPushButton:hover,
ActionButton:hover,
SystemToolButton:hover,
AxisToolButton:hover {
border: 1px solid #9ad58d;
}
QPushButton:pressed,
QPushButton:checked {
border-color: #9ad58d;
color: #9ad58d;
}
ActionButton#action_machine_on {
border-color: #FF0000;
color: #FF0000;
}
ActionButton#action_machine_on[isStateOn=true] {
border-color: #9ad58d;
color: #9ad58d;
}
ActionButton#action_estop {
border-color: #9ad58d;
color: #9ad58d;
}
ActionButton#action_estop:checked {
border-color: #FF0000;
color: #FF0000;
}
/** Checkboxes **/
QCheckBox {
spacing: 5px;
outline: none;
color: #e0e0e0;
margin-bottom: 2px;
}
QCheckBox:disabled {
color: #A0A0A0;
}
QCheckBox::indicator {
width: 18px;
height: 18px;
}
QCheckBox::indicator:unchecked {
image: url(:/buttons/images/unchecked.png);
}
QCheckBox::indicator:checked {
image: url(:/buttons/images/checked.png);
}
/** ComboBoxes **/
QComboBox {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
min-width: 120px;
color: #9ad58d;
padding: 1px 0px 1px 3px;
}
QComboBox::drop-down {
subcontrol-origin: margin;
subcontrol-position: top right;
width: 24px;
}
QComboBox::item {
background-color: #404040;
color: #9ad58d;
}
QComboBox::item:selected {
border: 1px solid #9ad58d;
}
QComboBox::Indicator {
background-color: transparent;
}
/** Labels **/
QLabel {
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QLabel#label_axis_x,
QLabel#label_axis_y,
QLabel#label_axis_z,
QLabel#label_axis_a {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
font: 12pt "Lato Heavy";
color: #e0e0e0;
}
StatusLabel,
StateLabel {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: #9ad58d;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
DROLabel {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: #9ad58d;
}
DROLabel[isHomed=false] {
color: red;
}
/** Sliders **/
QSlider::groove:horizontal {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.5, stop:0 #808080, stop:1 #9ad58d);
height: 12px;
border-radius: 4px;
}
QSlider::groove:vertical {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0.5, y2:0, stop:0 #808080, stop:1 #9ad58d);
width: 12px;
border-radius: 4px;
}
QSlider::handle:horizontal {
background-color: #808080;
border: 1px solid black;
width: 14px;
margin-top: -4px;
margin-bottom: -4px;
border-radius: 4px;
}
QSlider::handle:vertical {
background-color: #808080;
border: 1px solid black;
height: 14px;
margin-left: -4px;
margin-right: -4px;
border-radius: 4px;
}
QProgressBar {
background: #a0a0a0;
border: 1px solid black;
border-radius: 4px;
}
QProgressBar::chunk:horizontal {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0.5, y2:0, stop:0 #808080, stop:1 #9ad58d);
}
/** LineEdits **/
QLineEdit {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
color: #9ad58d;
}
CalculatorDialog QLineEdit {
font: 16pt "Lato Heavy";
}
/** Tables **/
QTableView,
QListView,
QTreeView {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
selection-background-color: transparent;
qproperty-alternatingRowColors: false;
border: 1px solid black;
gridline-color: black;
font: 10pt "Lato Heavy";
color: #e0e0e0;
}
QTableView::item:hover,
QListView::item:hover,
QTreeView::item:hover {
border: 1px solid #9ad58d;
}
QTableView::item:pressed,
QTreeView::item:pressed {
color: #9ad58d;
}
QTableView::item:selected:active,
QTreeView::item:selected:active,
QListView::item:selected:active {
border: 1px solid #9ad58d;
color: #9ad58d;
}
QHeaderView {
background-color: #404040;
margin: 0px;
padding: 0px;
color: #9ad58d;
}
QHeaderView::section {
color: #e0e0e0;
padding: 5px;
text-align: center;
}
QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
border-top: 1px solid #76797C;
}
QHeaderView::section::vertical {
border-top: transparent;
}
QHeaderView::section::horizontal::first,
QHeaderView::section::horizontal::only-one {
border-left: 1px solid #76797C;
}
QHeaderView::section::horizontal {
border-left: transparent;
}
QHeaderView::section:checked {
color: #9ad58d;
}
/** ScrollBars **/
QScrollBar:horizontal {
background-color: #303030;
margin: 0px 20px 0px 20px;
border-radius: 2px;
height: 20px;
}
QScrollBar::handle:horizontal {
background-color: #9ad58d;
min-width: 15px;
border-radius: 4px;
}
QScrollBar::add-line:horizontal {
margin: 0px 0px 0px 0px;
width: 20px;
height: 20px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
margin: 0px 0px 0px 0px;
height: 20px;
width: 20px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar:vertical {
background-color: #303030;
margin: 20px 0px 20px 0px;
border-radius: 2px;
width: 20px;
}
QScrollBar::handle:vertical {
background-color: #9ad58d;
min-height: 15px;
border-radius: 4px;
}
QScrollBar::sub-line:vertical {
height: 20px;
width: 20px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical {
margin: 0px 0px 0px 0px;
height: 20px;
width: 20px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::left-arrow:horizontal,
QScrollBar::right-arrow:horizontal,
QScrollBar::up-arrow:vertical,
QScrollBar::down-arrow:vertical {
background: none;
/* background-color: #303030;*/
}
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal,
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical {
background: none;
}
/** Miscellaneous **/
.QFrame {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
border: 1px solid #e0e0e0;
}
QFrame#frame_cycle_start,
QFrame#frame_home_all {
border: 1px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QFrame#frame_cycle_start:hover,
QFrame#frame_home_all:hover {
border: 1px solid #9ad58d;
}
QWidget:disabled {
color: #454545;
background-color: #323232;
}
QTextEdit {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));
color: #e0e0e0;
}
QPlainTextEdit {
background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(40, 40, 40, 255), stop:1 rgba(83, 83, 83, 255));;
/* border-radius: 2px;*/
color: #e0e0e0;
}
QHeaderView::section {
background-color: #404040;
color: #9ad58d;
padding: 5px;
}
/** GCode Display **/
EditorBase {
qproperty-styleColorBackground: #303030;
qproperty-styleColorMarginBackground: #202020;
qproperty-styleColorMarginText: #E0E0E0; /* margin line numbers */
qproperty-styleColorMarkerBackground: #505050; /* Current Line Marker Background */
qproperty-styleFont: "Lato Heavy, 10";
qproperty-styleFont1: "Lato Heavy, 9"; /* comments */
qproperty-styleFontMargin: "Lato Heavy, 9";
qproperty-styleColor0: #efefef; /* default */
qproperty-styleColor1: #788a74; /* LineNo & Comments */
qproperty-styleColor2: #5f6cd9; /* Gcodes */
qproperty-styleColor3: #9157cf; /* Mcodes */
qproperty-styleColor4: #598f4d; /* Axes */
qproperty-styleColor5: #598f4d; /* Other (feed, spindle, radius, etc) */
qproperty-styleColor6: #9ad58d; /* Axes Values */
qproperty-styleColor7: #9ad58d; /* Other Values */
}
QStackedWidget {
border: none;
}
QListView::item:selected {
outline: 0;
color: #9ad58d;
}
ToolDialog,CloseDialog,EntryDialog, CalculatorDialog{
background-color: gray;
}
ToolDialog QPushButton,AboutDialog QPushButton{
width: 100px;
height: 40px;
}
RunFromLineDialog QPushButton,
CalculatorDialog QPushButton,
EntryDialog QPushButton,
CloseDialog QPushButton{
width: 80px;
height: 40px;
}
QMenu {
background-color: red; /* sets background of the menu */
border: 1px solid black;
color: #9ad58d;
}
QMenu::item {
/* sets background of menu item. set this to something non-transparent
if you want menu color and menu item color to be different */
background-color: transparent;;
}
QMenu::item:selected { /* when user selects item using mouse or keyboard */
background-color: blue;
}
GcodeDisplay{
background-color: #CAF9C7
}
QSpinBox {
padding-right: 15px; /* make room for the arrows */
border-width: 3px;
height: 40px;
}
QSpinBox::down-button {
width: 20px;
height: 20px;
}
QSpinBox::down-arrow {
width: 20px;
height: 20px;
}
QSpinBox::up-button {
width: 20px;
height: 20px;
}
QSpinBox::up-arrow {
width: 20px;
height: 20px;
}
/** Tab Widget **/
QTabWidget::pane {
border: 1px solid gray;
top:-1px;
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #606060, stop:1 #202020);
}
QScrollArea > QWidget > QWidget {
background-color: #404040;;
}

View File

@@ -0,0 +1,234 @@
QMainWindow {
background: url(images/brushed_metal.png);
}
QStatusBar {
background: #606060;
font: 10pt "Lato Heavy";
color: #FFFFD0;
}
QPushButton, ActionButton, SystemToolButton, AxisToolButton {
border: 2px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QPushButton:checked, QPushButton:pressed {
border-color: blue;
color: #0000FF;
}
QPushButton:hover, ActionButton:hover, SystemToolButton:hover, AxisToolButton:hover {
border: 2px solid blue;
}
QPushButton:disabled, ActionButton:disabled {
color: gray;
}
ActionButton#action_machine_on {
border: none;
color: #FF0000;
}
ActionButton#action_machine_on:checked {
color: #00FF00;
}
ActionButton#action_estop {
border: none;
color: #00FF00;
}
ActionButton#action_estop:checked {
color: #FF0000;
}
QLabel {
font: 10pt "Lato Heavy";
color: black;
}
QLabel#label_axis_x, QLabel#label_axis_y, QLabel#label_axis_z, QLabel#label_axis_a {
border: 2px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: blue;
}
DROLabel {
border: 1px solid black;
border-radius: 4px;
font: 20pt "Lato Heavy";
color: black;
}
DROLabel[isHomed=false] {
color: red;
}
QLabel#lbl_cycle_start, QLabel#lbl_home_all {
font: 10pt "Lato Heavy";
}
StatusLabel, StateLabel {
background: rgb(250, 250, 250);
font: 10pt "Lato Heavy";
color: black;
}
StatusLabel#status_rpm, Label {
font: 20pt "Lato Heavy";
}
QLineEdit {
background: rgb(250, 250, 250);
border: 1px solid;
border-left-color: black;
border-top-color: black;
border-right-color: white;
border-bottom-color: white;
font: 10pt "Lato Heavy";
}
QTextEdit {
background: rgb(250,250,250);
font: 10pt "Lato";
}
QCheckBox {
font: 10pt "Lato Heavy";
}
QComboBox {
border: 1px solid black;
width: 20px;
font: 10pt "Lato Heavy";
color: black;
}
QGroupBox {
border: 1px solid black;
border-radius: 4px;
margin-top: 16px;
font: 10pt "Lato Heavy";
}
QGroupBox::title {
subcontrol-origin: margin;
padding: 0 3px;
color: black;
}
QProgressBar {
background-color: rgb(250, 250, 250);
border: 1px solid black;
border-radius: 4px;
font: 9 pt "Lato Heavy";
}
QProgressBar::chunk {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
}
.QFrame {
}
QFrame#frame_cycle_start, QFrame#frame_home_all {
border: 2px solid black;
border-radius: 4px;
font: 10pt "Lato Heavy";
}
QFrame#frame_cycle_start:hover, QFrame#frame_home_all:hover {
border: 2px solid blue;
}
QHeaderView {
background-color: #B0B0D0;
border: 0px transparent #32414B;
padding: 0px;
margin: 0px;
border-radius: 0px;
font: 10pt "Lato Heavy";
}
QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
width: 60px;
}
OriginOffsetView, ToolOffsetView {
font: 10pt "Lato Heavy";
}
QSlider::groove:horizontal {
border: 1px black;
height: 12px;
}
QSlider::groove:vertical {
border: 1px black;
width: 12px;
}
QSlider::sub-page:horizontal {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf stop: 1 #55f);
border: 1px solid #777;
border-radius: 3px;
height: 12px;
}
QSlider::add-page:horizontal {
background: white;
border: 1px solid #777;
border-radius: 3px;
width: 12px;
}
QSlider::add-page:vertical {
background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
stop: 0 #bbf, stop: 1 #55f);
border: 1px solid #777;
border-radius: 3px;
height: 12px;
}
QSlider::sub-page:vertical {
background: white;
border: 1px solid #777;
border-radius: 3px;
width: 12px;
}
QSlider::handle:horizontal {
background: lightgray;
border: 1px solid black;
width: 12px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 2px;
}
QSlider::handle:vertical {
background: lightgray;
border: 1px solid black;
height: 12px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 2px;
}
ToolDialog QPushButton, AboutDialog QPushButton{
width: 100px;
height: 40px;
}
EntryDialog QPushButton, CloseDialog QPushButton{
width: 80px;
height: 40px;
}
GcodeDisplay{
background-color: #D7F6F6
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,18 @@
Qtdragon
version 1.0 released in linuxcnc 2.9.1
version 1.1 fix probe routines: spindle starts on error or abort
version 1.2 allow setting of the percentage X or Y size of camview image from the preference file
commit a5394d4e2cec98b6f0ee9770542d2e8dfeb71af2
version 1.3 fix units bug with 'goto sensor/home' button with imperial machines
commit 73d228b0a6382b5a900f28e44d6357d650dbb497
version 1.4 add ability to set camview camera number
commit 0360ccd94ee82010277d9b7e9f6e2a4fd3fb41c5
version 1.5 fix incremental keyboard jogging had to hold key down until jog finished
commit f0e353d90385e37a3103fdb6f4768798b4bf4be2