Blame view

3rdparty/opencv-4.5.4/modules/highgui/src/files_Qt/stylesheet_trackbar.qss 1.17 KB
f4334277   Hu Chunming   提交3rdparty
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
  /* //from http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet/ */
  
  QSlider::groove:horizontal {
  border: 1px solid #bbb;
  background: white;
  height: 10px;
  border-radius: 4px;
  }
  
  QSlider::sub-page:horizontal {
  background: qlineargradient(x1: 0, y1: 0,    x2: 0, y2: 1,
  stop: 0 #66e, stop: 1 #bbf);
  background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,
  stop: 0 #bbf, stop: 1 #55f);
  border: 1px solid #777;
  height: 10px;
  border-radius: 4px;
  }
  
  QSlider::add-page:horizontal {
  background: #fff;
  border: 1px solid #777;
  height: 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 #777;
  width: 13px;
  margin-top: -2px;
  margin-bottom: -2px;
  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;
  }
  
  QSlider::sub-page:horizontal:disabled {
  background: #bbb;
  border-color: #999;
  }
  
  QSlider::add-page:horizontal:disabled {
  background: #eee;
  border-color: #999;
  }
  
  QSlider::handle:horizontal:disabled {
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
  }