From 272c995a8eb6d733650e482de00b65046e66678c Mon Sep 17 00:00:00 2001 From: Izurii Date: Thu, 8 Apr 2021 23:33:42 -0300 Subject: [PATCH 1/2] Removed advanced brightness options and fixed base segments options. --- src/app.js | 20 +++++++++++--------- src/index.html | 11 ++++++----- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/app.js b/src/app.js index 63c18a5..c7d2645 100644 --- a/src/app.js +++ b/src/app.js @@ -118,7 +118,7 @@ app.filter('htmlTrusted', ['$sce', function($sce){ $scope.selectedSegment = 0; $scope.selectedBrightness = 3; $scope.backlightMode = 3; - $scope.advancedBrightness = false; + // $scope.advancedBrightness = false; // Keys size config @@ -160,7 +160,9 @@ app.filter('htmlTrusted', ['$sce', function($sce){ selectedProfile: $scope.selectedProfile, profiles: profilesArray }; + ipcRenderer.send('saveProfiles', profiles); + }; $scope.applySettings = (backlightMode=null, profileOptions=null) => { @@ -175,10 +177,10 @@ app.filter('htmlTrusted', ['$sce', function($sce){ // User profile and segment options const baseSegmentsOptions = [ - { segmentColor: 0, segmentBrightness : '4' }, - { segmentColor: 0, segmentBrightness : '4' }, - { segmentColor: 0, segmentBrightness : '4' }, - { segmentColor: 0, segmentBrightness : '4' } + { segmentColor: 0, segmentBrightness : 4 }, + { segmentColor: 0, segmentBrightness : 4 }, + { segmentColor: 0, segmentBrightness : 4 }, + { segmentColor: 0, segmentBrightness : 4 } ]; var userSelectedProfile = userProfilesStore.profiles[userProfilesStore.selectedProfile]; @@ -329,10 +331,10 @@ app.filter('htmlTrusted', ['$sce', function($sce){ // Brightness - $scope.showHideAdvancedBrightnessOptions = () => { - if($scope.advancedBrightness) $scope.advancedBrightness = false; - else $scope.advancedBrightness = true; - }; + // $scope.showHideAdvancedBrightnessOptions = () => { + // if($scope.advancedBrightness) $scope.advancedBrightness = false; + // else $scope.advancedBrightness = true; + // }; $scope.changeAllSegmentBrightness = () => { $scope.segmentsOptions.forEach((item, idx) => { diff --git a/src/index.html b/src/index.html index 0685337..345178d 100644 --- a/src/index.html +++ b/src/index.html @@ -68,9 +68,9 @@ ADD PROFILE RENAME PROFILE DELETE PROFILE - +
- + + Select the brightness for the keyboard -
+
From bd303357738037f0ee764c20bbb4ccdd9c1e4d03 Mon Sep 17 00:00:00 2001 From: Izurii Date: Thu, 8 Apr 2021 23:34:30 -0300 Subject: [PATCH 2/2] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f15b5b5..44f1ffa 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "node": "=14.16.0" }, "engineStrict": true, - "version": "v1.0.0-alpha", + "version": "v1.0.1-alpha", "description": "", "main": "main.js", "author": "Izurii Hootoh (https://github.com/Izurii)",