Skip to content

Commit

Permalink
Merge bcfbd3e into 1d2731f
Browse files Browse the repository at this point in the history
  • Loading branch information
yestalgia committed Oct 10, 2023
2 parents 1d2731f + bcfbd3e commit 19d5f03
Show file tree
Hide file tree
Showing 151 changed files with 2,820 additions and 7,294 deletions.
1 change: 1 addition & 0 deletions qmlui/js/GenericHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function pluginIconFromName(name)
case "OSC": return "qrc:/oscplugin.svg";
case "E1.31": return "qrc:/e131plugin.svg";
case "Loopback": return "qrc:/loop.svg";
case "Enttec": return "qrc:/ENTTEC.svg";
default: return "";
}
}
Expand Down
8 changes: 4 additions & 4 deletions qmlui/qml/IconButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Button
rightPadding: 0

property int counter: 1
property color bgColor: UISettings.bgLight
property color hoverColor: UISettings.hover
property color pressColor: UISettings.highlightPressed
property color checkedColor: UISettings.highlight
property color bgColor: UISettings.bgIconButton
property color hoverColor: UISettings.bgIconButtonHover
property color pressColor: UISettings.bgIconButtonHighlightPressed
property color checkedColor: UISettings.bgIconButtonHighlight

property alias border: contentBody.border
property alias radius: contentBody.radius
Expand Down
8 changes: 7 additions & 1 deletion qmlui/qml/UISettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ QtObject
property color bgLight: "#6F6F6F"
property color bgLighter: "#8F8F8F"

/* Icon Buttons */
property color bgIconButton: "#8F8F8F"
property color bgIconButtonHover: "white"
property color bgIconButtonHighlight: "white"
property color bgIconButtonHighlightPressed: "white"

property color fgMain: "white"
property color fgMedium: "#888"
property color fgLight: "#aaa"
property color fgLight: "#aaa"

property color sectionHeader: "#31456B"
property color sectionHeaderDiv: "#22304a"
Expand Down
73 changes: 73 additions & 0 deletions qmlui/qml/UISettingsEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,79 @@ Rectangle
}
}

//Row 14
RobotoText
{
height: origItemHeight
label: qsTr("Icon Normal")
}
Loader
{
property string kName: "bgIconButton"
sourceComponent: colorSelector
onLoaded: item.init(this, uiManager.getDefault(kName),
uiManager.getModified(kName))

function updateColor(col)
{
uiManager.setModified(kName, col)
}
}

RobotoText
{
height: origItemHeight
label: qsTr("Icon Hover")
}
Loader
{
property string kName: "bgIconButtonHover"
sourceComponent: colorSelector
onLoaded: item.init(this, uiManager.getDefault(kName),
uiManager.getModified(kName))

function updateColor(col)
{
uiManager.setModified(kName, col)
}
}
//Row 15
RobotoText
{
height: origItemHeight
label: qsTr("Icon Pressed")
}
Loader
{
property string kName: "bgIconButtonHighlightPressed"
sourceComponent: colorSelector
onLoaded: item.init(this, uiManager.getDefault(kName),
uiManager.getModified(kName))

function updateColor(col)
{
uiManager.setModified(kName, col)
}
}

RobotoText
{
height: origItemHeight
label: qsTr("Icon highlighted")
}
Loader
{
property string kName: "bgIconButtonHighlight"
sourceComponent: colorSelector
onLoaded: item.init(this, uiManager.getDefault(kName),
uiManager.getModified(kName))

function updateColor(col)
{
uiManager.setModified(kName, col)
}
}

GenericButton
{
Layout.columnSpan: 4
Expand Down
6 changes: 6 additions & 0 deletions qmlui/uimanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ void UiManager::initialize()
setDefaultParameter("colors", "toolbarSelectionMain", m_uiStyle->property("toolbarSelectionMain"));
setDefaultParameter("colors", "toolbarSelectionSub", m_uiStyle->property("toolbarSelectionSub"));

/** Icon Buttons **/
setDefaultParameter("colors", "bgIconButton", m_uiStyle->property("bgIconButton"));
setDefaultParameter("colors", "bgIconButtonHover", m_uiStyle->property("bgIconButtonHover"));
setDefaultParameter("colors", "bgIconButtonHighlight", m_uiStyle->property("bgIconButtonHighlight"));
setDefaultParameter("colors", "bgIconButtonHighlightPressed", m_uiStyle->property("bgIconButtonHighlightPressed"));

/** Then load (if available) the user configuration */
QFile jsonFile(userConfFilepath());
if (jsonFile.exists())
Expand Down
80 changes: 11 additions & 69 deletions resources/icons/svg/2dview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion resources/icons/svg/3dview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions resources/icons/svg/ENTTEC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 19d5f03

Please sign in to comment.