Skip to content

Commit 218bbfd

Browse files
Neoperolfurszy
authored andcommitted
Active button style added
1 parent 891cb10 commit 218bbfd

File tree

4 files changed

+98
-4
lines changed

4 files changed

+98
-4
lines changed

src/qt/pivx/forms/optionbutton.ui

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,70 @@
5353
<number>5</number>
5454
</property>
5555
<item>
56-
<widget class="QLabel" name="labelTitleChange">
57-
<property name="text">
58-
<string>TextLabel</string>
56+
<layout class="QHBoxLayout" name="horizontalLayout">
57+
<property name="spacing">
58+
<number>0</number>
5959
</property>
60-
</widget>
60+
<item>
61+
<widget class="QWidget" name="layoutCircle" native="true">
62+
<property name="minimumSize">
63+
<size>
64+
<width>20</width>
65+
<height>0</height>
66+
</size>
67+
</property>
68+
<property name="maximumSize">
69+
<size>
70+
<width>20</width>
71+
<height>16777215</height>
72+
</size>
73+
</property>
74+
<layout class="QHBoxLayout" name="horizontalLayout">
75+
<property name="spacing">
76+
<number>0</number>
77+
</property>
78+
<property name="leftMargin">
79+
<number>0</number>
80+
</property>
81+
<property name="topMargin">
82+
<number>0</number>
83+
</property>
84+
<property name="rightMargin">
85+
<number>0</number>
86+
</property>
87+
<property name="bottomMargin">
88+
<number>0</number>
89+
</property>
90+
<item alignment="Qt::AlignLeft">
91+
<widget class="QLabel" name="labelCircle">
92+
<property name="minimumSize">
93+
<size>
94+
<width>10</width>
95+
<height>10</height>
96+
</size>
97+
</property>
98+
<property name="maximumSize">
99+
<size>
100+
<width>10</width>
101+
<height>10</height>
102+
</size>
103+
</property>
104+
<property name="text">
105+
<string/>
106+
</property>
107+
</widget>
108+
</item>
109+
</layout>
110+
</widget>
111+
</item>
112+
<item>
113+
<widget class="QLabel" name="labelTitleChange">
114+
<property name="text">
115+
<string>TextLabel</string>
116+
</property>
117+
</widget>
118+
</item>
119+
</layout>
61120
</item>
62121
<item>
63122
<widget class="QLabel" name="labelSubtitleChange">

src/qt/pivx/optionbutton.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ OptionButton::OptionButton(QWidget *parent) :
1313

1414
ui->layoutOptions2->setProperty("cssClass", "container-options");
1515
ui->layoutOptions2->setContentsMargins(0,10,10,10);
16+
17+
//ui->layoutCircle->setVisible(true);
18+
ui->labelCircle->setProperty("cssClass", "btn-options-indicator");
1619
}
1720

1821
OptionButton::~OptionButton()

src/qt/pivx/res/css/style_dark.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,17 @@ QPushButton[cssClass="ic-multi-number"] {
23072307
color: #B088FF;
23082308
}
23092309

2310+
/*HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
2311+
HH OPTION BUTTON
2312+
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH*/
2313+
2314+
2315+
*[cssClass="btn-options-indicator"]{
2316+
border:0px ;
2317+
background:#9c70ff;
2318+
border-radius: 5px;
2319+
}
2320+
23102321

23112322
/*HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
23122323
HH SNACK BAR
@@ -2323,4 +2334,14 @@ HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH*/
23232334
font-size:20px;
23242335
}
23252336

2337+
/*HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
2338+
HH LOADING
2339+
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH*/
2340+
2341+
2342+
*[cssClass="text-loading"]{
2343+
color:#4d4d4d;
2344+
font-size:20px;
2345+
}
2346+
23262347

src/qt/pivx/res/css/style_light.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,6 +2425,17 @@ QPushButton[cssClass="ic-multi-number"] {
24252425
color: #5c4b7d;
24262426
}
24272427

2428+
/*HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
2429+
HH OPTION BUTTON
2430+
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH*/
2431+
2432+
2433+
*[cssClass="btn-options-indicator"]{
2434+
border:0px ;
2435+
background:#9c70ff;
2436+
border-radius: 5px;
2437+
}
2438+
24282439

24292440

24302441
/*HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

0 commit comments

Comments
 (0)