style_PropertyList.qss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. QFrame#framePropertyWnd{
  2. border: 0px;
  3. }
  4. QFrame#framePropertyTitle{
  5. background: #1C1C1C;
  6. border-top: 1px solid #070707;
  7. }
  8. QStackedWidget#stackedWidget{
  9. background-color: #28292B;
  10. }
  11. /* 切换属性页(所有属性、常用属性、图像格式)的按钮 */
  12. QPushButton#btnfeatures,
  13. QPushButton#btnSettings,
  14. QPushButton#btnImageFormat,
  15. QPushButton#btnGPIO {
  16. max-height: 42;
  17. max-width: 1000;
  18. min-width: 50px;
  19. min-height: 42px;
  20. height: 42px;
  21. background: #1C1C1C;
  22. border: 0px solid #1C1C1C;
  23. border-radius: 0px;
  24. color: #737374;
  25. padding-left: 4px;
  26. padding-right: 4px;
  27. }
  28. QPushButton#btnfeatures:checked,
  29. QPushButton#btnSettings:checked,
  30. QPushButton#btnImageFormat:checked,
  31. QPushButton#btnGPIO:checked {
  32. color: #FFFFFF;
  33. border-bottom: 3px solid #FF2D2D;
  34. }
  35. QPushButton#btnfeatures:hover,
  36. QPushButton#btnSettings:hover,
  37. QPushButton#btnImageFormat:hover,
  38. QPushButton#btnGPIO:hover {
  39. color: #FFFFFF;
  40. }
  41. /* 展开属性列表 */
  42. QPushButton#btnExpandProperty{
  43. background:#28292b;
  44. min-width: 18px;
  45. max-width: 18px;
  46. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowRight_Normal.png);
  47. background-repeat: repeat-x;
  48. background-position: left;
  49. border-top: 1px solid #000000;
  50. }
  51. QPushButton#btnExpandProperty:hover {
  52. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowRight_Hover.png);
  53. }
  54. QPushButton#btnExpandProperty:pressed {
  55. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowRight_Pressed.png);
  56. }
  57. /* 收缩属性列表 */
  58. QPushButton#btnCollpaseProperty{
  59. background: rgba(0, 0, 0, 180);
  60. min-width: 17px;
  61. min-height: 32px;
  62. max-width: 17px;
  63. max-height:32px;
  64. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowLeft_Normal.png);
  65. background-repeat: repeat-x;
  66. background-position: left;
  67. }
  68. QPushButton#btnCollpaseProperty:hover {
  69. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowLeft_Hover.png);
  70. }
  71. QPushButton#btnCollpaseProperty:pressed {
  72. background-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_ArrowLeft_Pressed.png);
  73. }
  74. /* 属性页--所有属性 */
  75. CPropertyFeaturesForm{
  76. background: #28292b;
  77. }
  78. /* */
  79. CPropertyFeaturesForm QFrame#frame{
  80. min-height:42;
  81. max-height:42;
  82. }
  83. /* 收缩、展开属性树 */
  84. CPropertyFeaturesForm QToolButton#btnExpand {
  85. max-height:22;
  86. max-width:38;
  87. border:0px solid #808080;
  88. border-radius: 0px;
  89. min-width: 38px;
  90. min-height: 22px;
  91. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_FoldUnfold_Normal.png);
  92. }
  93. CPropertyFeaturesForm QToolButton#btnExpand:hover {
  94. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_FoldUnfold_Hover.png);
  95. }
  96. CPropertyFeaturesForm QToolButton#btnExpand:pressed {
  97. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_FoldUnfold_Pressed.png);
  98. }
  99. /* 属性搜索关键字 */
  100. CPropertyFeaturesForm QLineEdit#lineEditKey {
  101. selection-background-color: #797c81;
  102. selection-color: #FFFFFF;
  103. background: #373839;
  104. border-radius: 1;
  105. margin-bottom: 1px;
  106. border: 0px solid #FFFFFF;
  107. }
  108. CPropertyFeaturesForm QLineEdit#lineEditKey:focus {
  109. border: 1px solid #FF2D2D;
  110. }
  111. /* 清除属性搜索关键字 */
  112. CPropertyFeaturesForm QPushButton#btnClear {
  113. min-width: 22;
  114. min-height: 22;
  115. max-width: 22;
  116. max-height: 22;
  117. width: 22;
  118. height: 22;
  119. padding: 0 0 0 0;
  120. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_Search_Cancel_Normal.png);
  121. background: #373839;
  122. border-radius: 1;
  123. }
  124. CPropertyFeaturesForm QPushButton#btnClear:hover{
  125. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_Search_Cancel_Hover.png);
  126. }
  127. CPropertyFeaturesForm QPushButton#btnClear:pressed{
  128. border-image: url(Skins/Default/MVSDKGuiQt/Btn_DevProperty_Search_Cancel_Pressed.png);
  129. }
  130. CPropertyFeaturesForm QPushButton#btnClear:disabled{
  131. border-image: url(Skins/Default/MVSDKGuiQt/Icon_DevProperty_Search.png);
  132. }
  133. /* */
  134. CPropertyFeaturesForm QFrame#frame_bottom {
  135. background: #1c1c1c;
  136. border: 0px solid #000000;
  137. min-height: 42px;
  138. max-height: 42px;
  139. }
  140. CPropertyFeaturesForm QFrame#line {
  141. background: #3e3d3d;
  142. border: 0px solid #000000;
  143. min-width: 1px;
  144. max-width: 1px;
  145. }
  146. /* 恢复出厂设置 */
  147. CPropertyFeaturesForm QToolButton#btnReset {
  148. background: #1c1c1c;
  149. border: 0px solid #000000;
  150. min-width: 110px;
  151. }
  152. CPropertyFeaturesForm QToolButton#btnReset:hover {
  153. background: #1c1c1c;
  154. border: 0px solid #000000;
  155. color: #FFFFFF;
  156. }
  157. /* 属性树中的属性可见度(Beginner、Expert、Guru) */
  158. CPropertyFeaturesForm QComboBox{
  159. min-height:29;
  160. max-height:29;
  161. height:29;
  162. }
  163. CPropertyFeaturesForm QComboBox#cbVisibility{
  164. min-width:68;
  165. max-width:68;
  166. width: 68;
  167. min-height:24;
  168. max-height:24;
  169. height:24;
  170. }
  171. CPropertyFeaturesForm QLabel#label_visibility{
  172. max-width: 50;
  173. min-width: 50;
  174. background: transparent;
  175. }
  176. /* 属性树 */
  177. CPropertyFeaturesForm QTreeView{
  178. show-decoration-selected: 1;
  179. background-color: #28292B;
  180. border: 0 solid #a6aaa8;
  181. selection-background-color: #414244;
  182. selection-color: #FFFFFF;
  183. alternate-background-color: #1F2021;
  184. }
  185. /* 属性树中的QLineEdit(例如DeviceUserID)、SpinBox(例如Width) */
  186. CPropertyFeaturesForm QLineEdit, CPropertyFeaturesForm QAbstractSpinBox {
  187. border: 1 solid #FF2D2D;
  188. selection-background-color: #797c81;
  189. selection-color: #FFFFFF;
  190. background:rgb(33,34,35);
  191. }
  192. CPropertyFeaturesForm QLineEdit:focus, CPropertyFeaturesForm QAbstractSpinBox:focus{
  193. border: 1 solid #FF2D2D;
  194. selection-background-color: #797c81;
  195. selection-color: #FFFFFF;
  196. background:rgb(33,34,35);
  197. }
  198. /* 属性树中的按钮(例如TriggerSoftware) */
  199. CPropertyFeaturesForm QPushButton{
  200. height:25px;
  201. min-height: 25px;
  202. max-height: 25px;
  203. }
  204. CPropertyFeaturesForm QPushButton:default, CPropertyFeaturesForm QPushButton[highlight="1"] {
  205. background: #2e2f31;
  206. }
  207. CPropertyFeaturesForm QPushButton:default:hover, CPropertyFeaturesForm QPushButton[highlight="1"]:hover {
  208. background: #323336;
  209. }
  210. CPropertyFeaturesForm QPushButton:default:pressed, CPropertyFeaturesForm QPushButton[highlight="1"]:pressed {
  211. background: #28292b;
  212. }
  213. CPropertyFeaturesForm QWidget#myPushButton{
  214. border: 0px;
  215. }
  216. /* 属性树下面的属性说明(Min、Max、Type等) */
  217. CPropertyFeaturesForm QTextEdit {
  218. margin-top: 10px;
  219. }
  220. CPropertyFeaturesForm QTextEdit {
  221. background: #28292B;
  222. border: 0px solid #000000;
  223. selection-background-color: #797c81;
  224. selection-color: #FFFFFF;
  225. }
  226. CPropertyFeaturesForm QTextEdit:focus{
  227. border: 0 solid #000000;
  228. }
  229. /* 属性页--常用属性 */
  230. CPropertySettingsForm QScrollArea{
  231. border: 0px solid #000000;
  232. }
  233. CPropertySettingsForm QWidget#widget{
  234. background-color: #28292B;
  235. }
  236. CPropertySettingsForm QFrame#line_FrameRate,
  237. CPropertySettingsForm QFrame#line_Exposure,
  238. CPropertySettingsForm QFrame#line_GainGamma,
  239. CPropertySettingsForm QFrame#line_Denoising,
  240. CPropertySettingsForm QFrame#line_Sharpness,
  241. CPropertySettingsForm QFrame#line_Brightness,
  242. CPropertySettingsForm QFrame#line_Contrast{
  243. background-color: #1C1C1C;
  244. max-height: 1;
  245. border:0px solid #1C1C1C;
  246. }
  247. /* 常用属性页面的下拉框 */
  248. CPropertySettingsForm QComboBox{
  249. min-width: 168;
  250. max-width: 185;
  251. min-height: 26;
  252. }
  253. /* 常用属性页面的SpinBox */
  254. CPropertySettingsForm QDoubleSpinBox, CPropertySettingsForm QSpinBox {
  255. min-height: 24px;
  256. padding-right: 0px;
  257. border: 0 solid #242424;
  258. background: transparent;
  259. color: #e5e5e5;
  260. font-size:12;
  261. min-width:65;
  262. max-width:65;
  263. }
  264. CPropertySettingsForm QDoubleSpinBox:hover, CPropertySettingsForm QSpinBox:hover{
  265. color: #FFFFFF;
  266. }
  267. CPropertySettingsForm QDoubleSpinBox:focus, CPropertySettingsForm QSpinBox:focus{
  268. border: 1 solid #ff2d2d;
  269. }
  270. CPropertySettingsForm QDoubleSpinBox:disabled, CPropertySettingsForm QSpinBox:disabled{
  271. background: transparent;
  272. color: #9d9d9d;
  273. }
  274. /* 常用属性页面的滑动条 */
  275. CPropertySettingsForm QSlider{
  276. min-width:90;
  277. }
  278. /* 常用属性页面的标签 */
  279. CPropertySettingsForm QLabel{
  280. min-width:112;
  281. min-height:40;
  282. max-width:112;
  283. color:#B3B3B3;
  284. font-size:12;
  285. background-color:transparent;
  286. }
  287. /* */
  288. CPropertySettingsForm QLabel#SpinBoxLabel,
  289. CPropertyImageFormatForm QLabel#SpinBoxLabel {
  290. background: #28292b;
  291. color: #e5e5e5;
  292. min-width: 20;
  293. min-height: 10;
  294. }
  295. CPropertySettingsForm QLabel#SpinBoxLabel:disabled,
  296. CPropertyImageFormatForm QLabel#SpinBoxLabel:disabled {
  297. color: #9d9d9d;
  298. }
  299. /* 属性页--图像格式 */
  300. CPropertyImageFormatForm QScrollArea{
  301. border: 0px solid #000000;
  302. }
  303. CPropertyImageFormatForm QWidget#scrollAreaWidgetContents{
  304. background: #28292b;
  305. }
  306. CPropertyImageFormatForm QFrame{
  307. background: transparent;
  308. }
  309. CPropertyImageFormatForm QFrame#line{
  310. background-color: #1C1C1C;
  311. max-height: 1;
  312. border:0px solid #1C1C1C;
  313. }
  314. /* 图像格式页面的标签 */
  315. CPropertyImageFormatForm QLabel{
  316. min-width:80;
  317. max-width:80;
  318. color:#9d9d9d;
  319. font-size:12;
  320. background: transparent;
  321. }
  322. CPropertyImageFormatForm QLabel#labelTitle{
  323. color:#B3B3B3;
  324. }
  325. /* 图像格式页面的按钮 */
  326. CPropertyImageFormatForm QPushButton{
  327. min-width: 140px;
  328. height: 26px;
  329. }
  330. /* 图像格式页面的SpinBox */
  331. CPropertyImageFormatForm QDoubleSpinBox, CPropertyImageFormatForm QSpinBox {
  332. min-height: 24px;
  333. padding-right: 0px;
  334. border: 0 solid #242424;
  335. background: transparent;
  336. color: #e5e5e5;
  337. font-size:12;
  338. min-width:50;
  339. max-width:50;
  340. }
  341. CPropertyImageFormatForm QDoubleSpinBox:hover, CPropertyImageFormatForm QSpinBox:hover{
  342. color: #FFFFFF;
  343. }
  344. CPropertyImageFormatForm QDoubleSpinBox:focus, CPropertyImageFormatForm QSpinBox:focus{
  345. border: 1 solid #ff2d2d;
  346. }
  347. CPropertySettingsForm QDoubleSpinBox:disabled, CPropertySettingsForm QSpinBox:disabled{
  348. background: transparent;
  349. color: #9d9d9d;
  350. }
  351. /* 图像格式页面的滑动条 */
  352. CPropertyImageFormatForm QSlider{
  353. min-width:130;
  354. }
  355. /* 图像格式页面的下拉框 */
  356. CPropertyImageFormatForm QComboBox{
  357. min-width:60;
  358. min-height: 24;
  359. }