Skip to content

Commit

Permalink
gui / iiowidgets: fix different color border
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed Nov 14, 2024
1 parent 94ec3c5 commit 19b0860
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gui/src/widgets/smallprogressbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ void SmallProgressBar::setBarColor(QColor color)
setStyleSheet(style);
}

void SmallProgressBar::resetBarColor() { setBarColor(Style::getAttribute(json::theme::content_subtle)); }
void SmallProgressBar::resetBarColor() { setBarColor(Style::getAttribute(json::theme::interactive_subtle_idle)); }

#include "moc_smallprogressbar.cpp"
2 changes: 1 addition & 1 deletion gui/style/json/Scopy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"interactive_subtle_idle": "#5b5b6b",
"interactive_subtle_hover": "#535361",
"interactive_subtle_pressed": "#4c4c59",
"interactive_subtle_disabled": "#484854",
"interactive_subtle_disabled": "#35353d",
"interactive_focus": "#5D2287",
"interactive_primary_idle": "#4A64FF",
"interactive_primary_hover": "#697EFF",
Expand Down
2 changes: 1 addition & 1 deletion gui/style/qss/properties/iiowidgets/lineEdit.qss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
QLineEdit[&&property&&=true] {
border: &border_width& solid &content_subtle&;
border: &border_width& solid &interactive_subtle_idle&;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-left-radius: 0px;
Expand Down
5 changes: 2 additions & 3 deletions gui/style/qss/properties/lineedit/menuLineEdit.qss
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
QLineEdit[&&property&&=true] {
background-color: transparent;
color: &content_default&;
font-size: 15px;
font-size: &font_size&;
border: 0px solid transparent;
border-bottom: 1px solid &content_default&;
border-radius: 0;
padding: 2px;
padding-bottom: 4px;
padding: 0 &padding_interactive& 0 &padding_interactive&;
}

QLineEdit[&&property&&=true]:disabled {
Expand Down
2 changes: 1 addition & 1 deletion iio-widgets/src/iiowidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void IIOWidget::setDataToUIConversion(std::function<QString(QString)> func) { m_
void IIOWidget::startTimer(QString data)
{
m_lastData = data;
m_progressBar->setBarColor(Style::getAttribute(json::theme::interactive_primary_idle));
m_progressBar->setBarColor(Style::getAttribute(json::theme::interactive_subtle_idle));
m_progressBar->startProgress();
}

Expand Down

0 comments on commit 19b0860

Please sign in to comment.