-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcheckdiscount.ui
More file actions
160 lines (154 loc) · 4.82 KB
/
checkdiscount.ui
File metadata and controls
160 lines (154 loc) · 4.82 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CheckDiscount</class>
<widget class="QDialog" name="CheckDiscount">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>443</width>
<height>332</height>
</rect>
</property>
<property name="windowTitle">
<string>Live Discount</string>
</property>
<property name="windowIcon">
<iconset>
<normalon>:/resources/promotion-icons/discount.svg</normalon>
</iconset>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="horizontalFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="resources.qrc">:/resources/promotion-icons/discount.svg</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(0, 202, 128);</string>
</property>
<property name="text">
<string>Current Discount</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="apply_discount_btn">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton{
border:none;
color: rgb(255, 255, 255);
background-color: #00CA80;
padding:10px;
}
QPushButton:hover{
background-color: rgb(0, 147, 93);
}</string>
</property>
<property name="text">
<string>Apply Discount</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTableWidget" name="tableWidget">
<property name="styleSheet">
<string notr="true">QTableView {
border: 1px solid #d3d3d3; /* Border around the entire table */
selection-background-color: #a1c4fd; /* Background color for selected cells */
selection-color: white; /* Text color for selected cells */
alternate-background-color: #f2f2f2; /* Background color for alternate rows */
gridline-color: #cccccc; /* Color of gridlines separating cells */
background-color: #ffffff; /* Background color of the table */
}
/* Styling for individual cells */
QTableView::item {
padding: 2px; /* Padding inside each cell */
font-size:12px;
color: black; /* Default text color */
background-color: white; /* Default background color of cells */
}
/* Styling for selected cells */
QTableView::item:selected {
background-color: rgb(0, 202, 128); /* Background color for selected cells */
color: white; /* Text color for selected cells */
}
/* Row Styling (for alternate rows) */
QTableView::item:alternate {
background-color: #f9f9f9; /* Background color for alternate rows */
}
/* Styling for header cells */
QHeaderView::section {
background-color: #2c3e50; /* Header background color */
color: white; /* Header text color */
padding: 5px; /* Padding for header cells */
font-weight: bold; /* Bold font for header text */
text-align: center; /* Center-align header text */
}
/* Header horizontal lines */
QHeaderView::section:horizontal {
border-right: 1px solid #d3d3d3; /* Border between header cells */
}
/* For sorting indicators in the header */
QHeaderView::indicator:checked {
background-color: #0078d4; /* Sorting indicator background color */
}
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>