switching back to (better) icons

This commit is contained in:
Rolux 2010-03-06 10:54:30 +01:00
parent e7c0a60b50
commit 3abb6e31ea
6 changed files with 39 additions and 38 deletions

View File

@ -207,8 +207,7 @@ input[type=image].OxLarge {
input[type=image].OxLarge {
width: 18px;
}
input[type=image].OxMedium,
.OxButton.OxSymbol.OxMedium {
input[type=image].OxMedium {
width: 14px;
}
input[type=image].OxSmall {
@ -329,12 +328,12 @@ div.OxInput > .OxInputLabel {
div.OxInput > .OxButton {
float: left;
//margin-left: 1px;
margin-top: -2px;
margin-top: -1px;
}
div.OxInput > .OxButton:last-child {
float: left;
margin-left: -1px;
margin-top: -2px;
margin-top: -1px;
}
input.OxInput {
float: left;
@ -399,9 +398,10 @@ OxSelect
--------------------------------------------------------------------------------
*/
.OxSelect.OxMedium {
margin-left: 0;
}
.OxSelect > .OxButton {
float: right;
text-align: left;
}
.OxSelect > .OxSymbol {
@ -411,7 +411,9 @@ OxSelect
-webkit-user-select: none;
}
.OxSelect.OxMedium > .OxSymbol {
margin: -16px 0 0 8px;
float: right;
margin: -16px 0 0 -4px;
z-index: 9;
}
/*

View File

@ -1554,7 +1554,7 @@ requires
type: self.options.type == "text" ? "button" : "image"
})
.addClass("OxButton Ox" + Ox.toTitleCase(self.options.size) +
(self.options.style ? " Ox" + Ox.toTitleCase(self.options.style) : "") +
(self.options.style != "default" ? " Ox" + Ox.toTitleCase(self.options.style) : "") +
(self.options.disabled ? " OxDisabled": "") +
(self.options.selected ? " OxSelected": ""))
.mousedown(mousedown)
@ -1772,9 +1772,9 @@ requires
that.$label && that.$label.click(select);
that.$select = new Ox.Button({
style: "symbol",
// type: "image",
// value: "select"
value: oxui.symbols.select
type: "image",
value: "select"
// value: oxui.symbols.select
})
.click(select)
.appendTo(that);
@ -1818,9 +1818,9 @@ requires
if (self.options.clear) {
that.$clear = new Ox.Button({
style: "symbol",
//type: "image",
//value: "clear"
value: oxui.symbols.clear
type: "image",
value: "clear"
//value: oxui.symbols.clear
})
.click(clear)
.appendTo(that);
@ -2060,8 +2060,8 @@ requires
options:
animate boolean if true, animate thumb
arrows boolean if true, show arrows
arrowImages array arrow symbols, like ["minus", "plus"]
arrowStep number step when clicking arrows
arrowSymbols array arrow symbols, like ["minus", "plus"]
max number maximum value
min number minimum value
orientation string "horizontal" or "vertical"
@ -2085,8 +2085,8 @@ requires
.defaults({
animate: false,
arrows: false,
arrowImages: ["previous", "next"],
arrowStep: 1,
arrowSymbols: ["previous", "next"],
max: 100,
min: 0,
orientation: "horizontal",
@ -2121,7 +2121,7 @@ requires
var $arrowDec = Ox.Button({
style: "symbol",
type: "image",
value: self.options.arrowImages[0]
value: self.options.arrowSymbols[0]
})
.addClass("OxArrow")
.mousedown(mousedownArrow)
@ -2162,7 +2162,7 @@ requires
var $arrowInc = Ox.Button({
style: "symbol",
type: "image",
value: self.options.arrowImages[1]
value: self.options.arrowSymbols[1]
})
.addClass("OxArrow")
.mousedown(mousedownArrow)
@ -2312,14 +2312,13 @@ requires
.click(clickButton)
.appendTo(that);
that.$symbol = $("<div>", {
"class": "OxSymbol",
html: oxui.symbols.select
that.$symbol = new Ox.Button({
style: "symbol",
type: "image",
value: "select"
})
.click(function() {
that.$button.trigger("click");
})
.appendTo(that.$element);
.click(clickButton)
.appendTo(that);
that.$menu = new Ox.Menu({
element: that.$button,
@ -2355,7 +2354,7 @@ requires
// fixme: silly hack, and won't work for css()
that.$element.width(val + 16);
that.$button.width(val);
that.$symbol.width(val);
//that.$symbol.width(val);
return that;
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB