From 9c46e17b9fa2281117d0ad47aa9b7c84b0f5b3b1 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 24 Feb 2013 14:44:02 +0530 Subject: [PATCH] update oxmedium theme button disabled color and gradient; fix setting value of an Ox.SelectInput --- source/Ox.UI/js/Form/SelectInput.js | 7 ++++++- source/Ox.UI/themes/oxmedium/json/theme.jsonc | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Form/SelectInput.js b/source/Ox.UI/js/Form/SelectInput.js index 72433dd7..fb926237 100644 --- a/source/Ox.UI/js/Form/SelectInput.js +++ b/source/Ox.UI/js/Form/SelectInput.js @@ -75,7 +75,12 @@ Ox.SelectInput = function(options, self) { }, width: self.options.width }) - .update({value: setValue}); + .update({ + value: function() { + self.options.value = that.options('value'); + setValue(); + } + }); function getTitle() { var value = self.$select ? self.$select.value() : self.options.value; diff --git a/source/Ox.UI/themes/oxmedium/json/theme.jsonc b/source/Ox.UI/themes/oxmedium/json/theme.jsonc index acbf2b12..8c22f104 100644 --- a/source/Ox.UI/themes/oxmedium/json/theme.jsonc +++ b/source/Ox.UI/themes/oxmedium/json/theme.jsonc @@ -29,8 +29,8 @@ "buttonGradient": [[176, 176, 176], [144, 144, 144]], "buttonActiveColor": [0, 0, 0], "buttonActiveGradient": [[160, 160, 160], [160, 160, 160]], - "buttonDisabledColor": [64, 64, 64], - "buttonDisabledGradient": [[128, 128, 128], [96, 96, 96]], + "buttonDisabledColor": [96, 96, 96], + "buttonDisabledGradient": [[176, 176, 176], [144, 144, 144]], "buttonSelectedColor": [255, 255, 255], "buttonSelectedGradient": [[96, 96, 96], [128, 128, 128]],