1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| SpinBox { border-radius: 4px; height: 24px; min-width: 40px; border: 1px solid rgb(100, 100, 100); font-size: 15px; background:transparent; border-width:0; border-style:outset; } QSpinBox { border-radius: 4px; height: 24px; min-width: 40px; border: 1px solid rgb(100, 100, 100); } QSpinBox:enabled { color: rgb(220, 220, 220); } QSpinBox:enabled:hover, QLineEdit:enabled:focus { color: rgb(230, 230, 230); } QSpinBox:!enabled { color: rgb(65, 65, 65); background: transparent; } QSpinBox::up-button { width: 18px; height: 12px; border-top-right-radius: 4px; border-left: 1px solid rgb(100, 100, 100); image: url(:/Black/upButton); background: rgb(50, 50, 50); } QSpinBox::up-button:!enabled { border-left: 1px solid gray; background: transparent; } QSpinBox::up-button:enabled:hover { background: rgb(255, 255, 255, 30); } QSpinBox::down-button { width: 18px; height: 12px; border-bottom-right-radius: 4px; border-left: 1px solid rgb(100, 100, 100); image: url(:/Black/downButton); background: rgb(50, 50, 50); } QSpinBox::down-button:!enabled { border-left: 1px solid gray; background: transparent; } QSpinBox::down-button:enabled:hover { background: rgb(255, 255, 255, 30); }
|