Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Functions, reorganisation, nice stuff.
- Loading branch information
Tristan Youngs
committed
Apr 25, 2024
1 parent
f78f52a
commit e8abedf
Showing
10 changed files
with
98 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (C) 2017 The Qt Company Ltd. | ||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | ||
|
||
import QtQuick | ||
|
||
QtObject { | ||
// Constants & Factors | ||
readonly property real brightenFactor: 1.2 | ||
readonly property real darkenFactor: 0.8 | ||
readonly property real extraDarkenFactor: darkenFactor*0.6 | ||
|
||
// Core Colour Definitions | ||
readonly property color foregroundBase: "#ddd" | ||
readonly property color background: "#101" | ||
readonly property color principal: "#313" | ||
|
||
// Derived Colours | ||
readonly property color foregroundNormal: foregroundBase | ||
readonly property color foregroundHighlighted: brighter(foregroundBase) | ||
readonly property color foregroundDisabled: extraDark(foregroundBase) | ||
readonly property color mid: Qt.rgba( | ||
(background.r + principal.r)*0.5, | ||
(background.g + principal.g)*0.5, | ||
(background.b + principal.b)*0.5, | ||
1.0 | ||
) | ||
|
||
// Colour Functions | ||
function brighter(colour) { | ||
return Qt.rgba(colour.r*brightenFactor, colour.g*brightenFactor, colour.b*brightenFactor, 1.0) | ||
} | ||
function darker(colour) { | ||
return Qt.rgba(colour.r*darkenFactor, colour.g*darkenFactor, colour.b*darkenFactor, 1.0) | ||
} | ||
function extraDark(colour) { | ||
return Qt.rgba(colour.r*extraDarkenFactor, colour.g*extraDarkenFactor, colour.b*extraDarkenFactor, 1.0) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
module DissolveDark | ||
|
||
singleton Theme 1.0 Theme.qml | ||
ThemeColours 1.0 ThemeColours.qml | ||
Pane 1.0 Pane.qml | ||
ThemeColoursDark 1.0 ThemeColoursDark.qml | ||
|
||
Button 1.0 Button.qml | ||
ButtonPanel 1.0 ButtonPanel.qml | ||
CheckBox 1.0 CheckBox.qml | ||
CheckIndicator 1.0 CheckIndicator.qml | ||
Pane 1.0 Pane.qml | ||
Switch 1.0 Switch.qml | ||
SwitchIndicator 1.0 SwitchIndicator.qml | ||
Text 1.0 Text.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters