Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed May 9, 2024
1 parent 3959567 commit d0b2613
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
26 changes: 20 additions & 6 deletions dist/libs/DuAEF.jsxinc
Original file line number Diff line number Diff line change
Expand Up @@ -2609,12 +2609,18 @@ DuColor.init = function()
}
else {
/* @ts-ignore */
var brightness = app.preferences.getPrefAsFloat(
var brightness = 0.2;
if (app.preferences.havePref(
"Main Pref Section v2",
"User Interface Brightness (4) [0.0..1.0]",
/* @ts-ignore */
PREFType.PREF_Type_MACHINE_INDEPENDENT
);
PREFType.PREF_Type_MACHINE_INDEPENDENT
)) {
brightness = app.preferences.getPrefAsFloat(
"Main Pref Section v2",
"User Interface Brightness (4) [0.0..1.0]",
PREFType.PREF_Type_MACHINE_INDEPENDENT
);
}
if (brightness < .16) bgColor = [.11328125, .11328125, .11328125, 1];
else if (brightness < .5) bgColor = [.1953125, .1953125, .1953125, 1];
else bgColor = [.96875, .96875, .96875, 1];
Expand Down Expand Up @@ -21379,7 +21385,11 @@ DuAEUI.brightnessLimits = {
* @returns {Boolean}
*/
DuAEUI.useReducedContrast = function() {
if (DuAE.version.version < 24.4)
if (DuAE.version.version < 24.4 || app.preferences.havePref(
"Main Pref Section v2",
"Use Reduced Contrast",
PREFType.PREF_Type_MACHINE_INDEPENDENT
))
return true;

return app.preferences.getPrefAsBool(
Expand All @@ -21398,7 +21408,11 @@ DuAEUI.useReducedContrast = function() {
* - Light is `> 0.5`. The corresponding backgound color is [.96875, .96875, .96875, 1]
*/
DuAEUI.brightness = function() {
if (DuAE.version.version < 24.4)
if (DuAE.version.version < 24.4 || !app.preferences.havePref(
"Main Pref Section v2",
"User Interface Brightness (4) [0.0..1.0]",
PREFType.PREF_Type_MACHINE_INDEPENDENT
))
return .2;

return app.preferences.getPrefAsFloat(
Expand Down
4 changes: 2 additions & 2 deletions dist/libs/api3.jsxinc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ duframe;
* @namespace
* @author Nicolas Dufresne and contributors
* @copyright 2008 - 2023 Nicolas Dufresne, RxLaboratory
* @version 17.1.13
* @version 17.1.14
* @requires DuAEF>=1.0.0
* @requires DuIO>=3.0.0
* @requires DuGR>=4.0.0
Expand All @@ -126,7 +126,7 @@ duframe;
* along with DuGR. If not, see {@link http://www.gnu.org/licenses/}.
*/
var Duik = {}
Duik.apiVersion = "17.1.13";
Duik.apiVersion = "17.1.14";

/**
* A Global Object to share some Duik Data with other scripts
Expand Down
2 changes: 1 addition & 1 deletion tools/assets/environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"jsdoc_conf": "./tools/assets"
},
"meta": {
"version": "17.1.13",
"version": "17.1.14",
"prerelease": "false"
},
"dependencies": [
Expand Down

0 comments on commit d0b2613

Please sign in to comment.