mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-11-24 14:35:56 +00:00
Merge 73cb9e10b90a395dae90fc4564835df1cb6aa7d3 into f157648d1e51878a10e02a8836c1e15aa8c59cc9
This commit is contained in:
commit
16f985e86e
@ -35,6 +35,7 @@ QtObject {
|
||||
readonly property real maxBurnInFadeTime: 1600
|
||||
|
||||
property bool isMacOS: Qt.platform.os === "osx"
|
||||
property bool runsOnDarkDesktopTheme: (0.299 * palette.base.r + 0.587 * palette.base.g + 0.114 * palette.base.b) < 0.5
|
||||
|
||||
// GENERAL SETTINGS ///////////////////////////////////////////////////////
|
||||
property int x: 100
|
||||
|
||||
@ -358,6 +358,7 @@ Item {
|
||||
id: terminalFrame
|
||||
blending: false
|
||||
anchors.fill: parent
|
||||
runsOnDarkDesktopTheme: appSettings.runsOnDarkDesktopTheme
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,13 +22,15 @@ import QtQuick 2.0
|
||||
import "utils.js" as Utils
|
||||
|
||||
ShaderEffect {
|
||||
property color _staticFrameColor: "#fff"
|
||||
property bool runsOnDarkDesktopTheme: false
|
||||
|
||||
property color _staticFrameColor: runsOnDarkDesktopTheme ? "black" : "white"
|
||||
property color _backgroundColor: appSettings.backgroundColor
|
||||
property color _fontColor: appSettings.fontColor
|
||||
property color _lightColor: Utils.mix(_fontColor, _backgroundColor, 0.2)
|
||||
property real _ambientLight: Utils.lint(0.2, 0.8, appSettings.ambientLight)
|
||||
|
||||
property color frameColor: Utils.mix(_staticFrameColor, _lightColor, _ambientLight)
|
||||
property color frameColor: runsOnDarkDesktopTheme ? "black" : Utils.mix(_staticFrameColor, _lightColor, _ambientLight)
|
||||
property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
|
||||
|
||||
// Coefficient of the log curve used to approximate shadowing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user