Much improved frame reflections. This is a little bit heavier but much better looking. The code should be ok, but maybe the parameters might use some fine tuning.

This commit is contained in:
Filippo Scognamiglio
2014-07-06 23:57:47 +02:00
parent 2fe6d147d9
commit 93e40ade4a
6 changed files with 69 additions and 50 deletions
+7 -3
View File
@@ -128,8 +128,9 @@ Item{
// FRAMES /////////////////////////////////////////////////////////////////
property bool frame_reflections: true
property real frame_reflection_strength: ((frame_reflections && framelist.get(frames_index).reflections) ? 1.0 : 0.0) * 0.15
property bool _frameReflections: true
property bool reflectionsAllowed: framelist.get(frames_index).reflections
property bool frameReflections: _frameReflections && reflectionsAllowed
property alias profiles_list: profileslist
property int profiles_index: 0
@@ -147,7 +148,8 @@ Item{
contrast: contrast,
ambient_light: ambient_light,
fontScalingIndexes: fontScalingIndexes,
fontIndexes: fontIndexes
fontIndexes: fontIndexes,
frameReflections: _frameReflections
}
return JSON.stringify(settings);
}
@@ -210,6 +212,8 @@ Item{
fontIndexes = settings.fontIndexes !== undefined ? settings.fontIndexes : fontIndexes
fontScalingIndexes = settings.fontScalingIndexes !== undefined ? settings.fontScalingIndexes : fontScalingIndexes
_frameReflections = settings.frameReflections !== undefined ? settings.frameReflections : _frameReflections;
}
function loadProfileString(profileString){