mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge branch 'master' into myankov/merge-release-to-master
This commit is contained in:
@@ -46,7 +46,7 @@ Button {
|
||||
}
|
||||
|
||||
#s10 {
|
||||
border-width: 5 0; border-color: black;
|
||||
border-width: 5 0; border-color: black; background-color: white;
|
||||
}
|
||||
|
||||
#s11 {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Label text="pixels" />
|
||||
<StackLayout borderWidth="1px" borderColor="black" horizontalAlignment="left" verticalAlignment="top" orientation="horizontal" padding="1px">
|
||||
<Label text="Label" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
|
||||
<Button text="Button" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
|
||||
<Button text="Button" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" backgroundColor="orange" />
|
||||
<TextView text="Text View" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
|
||||
<TextField text="Text Field" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
|
||||
<Image src="~/ui-tests-app/resources/images/gravatar.png" borderWidth="1px" borderRadius="10px" borderColor="green" padding="1px" margin="1px" />
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<StackLayout borderWidth="2px" borderColor="green" orientation="horizontal" padding="2px">
|
||||
<Label text="Label" borderWidth="5px" borderRadius="10px" borderColor="black" padding="5px" margin="5px" />
|
||||
<Button text="Button" borderWidth="4px" borderRadius="10px" borderColor="black" padding="4px" margin="4px" />
|
||||
<Button text="Button" borderWidth="4px" borderRadius="10px" borderColor="black" padding="4px" margin="4px" backgroundColor="orange" />
|
||||
<TextView text="Text View" borderWidth="3px" borderRadius="10px" borderColor="black" padding="3px" margin="3px" />
|
||||
<TextField text="Text Field" borderWidth="2px" borderRadius="10px" borderColor="black" padding="2px" margin="2px" />
|
||||
</StackLayout>
|
||||
@@ -32,7 +32,7 @@
|
||||
<Label text="device independent pixels" />
|
||||
<StackLayout borderWidth="1" borderColor="black" horizontalAlignment="left" verticalAlignment="top" orientation="horizontal" padding="1">
|
||||
<Label text="Label" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
|
||||
<Button text="Button" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
|
||||
<Button text="Button" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" backgroundColor="orange" />
|
||||
<TextView text="Text View" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
|
||||
<TextField text="Text Field" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
|
||||
<Image src="~/ui-tests-app/resources/images/gravatar.png" borderWidth="1" borderRadius="10" borderColor="green" padding="1" margin="1" />
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<StackLayout borderWidth="2" borderColor="green" orientation="horizontal" padding="2">
|
||||
<Label text="Label" borderWidth="5" borderRadius="10" borderColor="black" padding="5" margin="5" />
|
||||
<Button text="Button" borderWidth="4" borderRadius="10" borderColor="black" padding="4" margin="4" />
|
||||
<Button text="Button" borderWidth="4" borderRadius="10" borderColor="black" padding="4" margin="4" backgroundColor="orange" />
|
||||
<TextView text="Text View" borderWidth="3" borderRadius="10" borderColor="black" padding="3" margin="3" />
|
||||
<TextField text="Text Field" borderWidth="2" borderRadius="10" borderColor="black" padding="2" margin="2" />
|
||||
</StackLayout>
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
<Page>
|
||||
<StackLayout>
|
||||
<Progress value="42" color="red" backgroundColor="green" height="10" width="300" />
|
||||
|
||||
<Switch checked="true" color="red" backgroundColor="green" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
<Switch checked="false" color="red" backgroundColor="green" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
|
||||
<Switch checked="true" color="red" backgroundColor="green" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
<Switch checked="false" color="red" backgroundColor="green" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
|
||||
<Switch checked="true" color="red" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
<Switch checked="false" color="red" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
|
||||
|
||||
<Switch />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
.control Button {
|
||||
border-width: 1 1 0 0;
|
||||
border-color: gray;
|
||||
background-color: white;
|
||||
font-size: 9;
|
||||
padding: 0;
|
||||
height: 0;
|
||||
|
||||
@@ -6,7 +6,6 @@ import { Label } from "tns-core-modules/ui/label";
|
||||
import { FontStyle, FontWeight } from "tns-core-modules/ui/enums";
|
||||
import * as typeUtils from "tns-core-modules/utils/types";
|
||||
import { Color } from "tns-core-modules/color";
|
||||
import * as utils from "tns-core-modules/utils/utils";
|
||||
import { isIOS } from "tns-core-modules/platform";
|
||||
|
||||
const genericFontFamilies = [
|
||||
@@ -48,7 +47,7 @@ let compareIgnoreCase = function (a, b) {
|
||||
};
|
||||
|
||||
if (isIOS) {
|
||||
const nsFontFamilies = utils.ios.getter(UIFont, UIFont.familyNames);
|
||||
const nsFontFamilies = UIFont.familyNames;
|
||||
for (let i = 0; i < nsFontFamilies.count; i++) {
|
||||
const family = nsFontFamilies.objectAtIndex(i);
|
||||
fontFamilies.push(family)
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
#button1 {
|
||||
border-color: rgba(0, 0, 0, 0);
|
||||
border-color: transparent;
|
||||
border-width: 3;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#button2 {
|
||||
border-color: rgba(0, 0, 0, 0.5);
|
||||
border-width: 3;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#button3 {
|
||||
border-width: 3;
|
||||
background-color: white;
|
||||
}
|
||||
Reference in New Issue
Block a user