Skip to content

Commit

Permalink
Fix the Slider
Browse files Browse the repository at this point in the history
Remove the iOS back button in custom ActionBar examples
Update CHANGELOG
  • Loading branch information
bundyo committed Sep 12, 2019
1 parent a21ead8 commit 06ea424
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 54 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Features

* Apply a default skin over the Core theme, similar to core in 1.x
* Add styling for custom ActionBar (GridLayout, Label and Buttons in the TitleView), check the example

### Fixes

Expand Down
1 change: 1 addition & 0 deletions app-compat/pages/custom-actionbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
navigatingTo="navigatingTo">

<ActionBar loaded="onLoaded">
<NavigationButton visibility="collapsed" />
<GridLayout rows="*" columns="*, auto, *">
<Label row="0" col="1" text="Action Title" textWrap="true" />
<Button text="Back" textWrap="true" row="0" col="0" tap="{{ goBack }}" />
Expand Down
23 changes: 12 additions & 11 deletions app/pages/custom-actionbar.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
navigatingTo="navigatingTo">

<ActionBar loaded="onLoaded">
<GridLayout rows="*" columns="*, auto, *">
<Label row="0" col="1" text="Action Title" textWrap="true" />
<Button text="Back" textWrap="true" row="0" col="0" tap="{{ goBack }}" />
<Button text="Something" textWrap="true" row="0" col="2" />
</GridLayout>
</ActionBar>
<ActionBar loaded="onLoaded">
<NavigationButton visibility="collapsed" />
<GridLayout rows="*" columns="*, auto, *">
<Label row="0" col="1" text="Action Title" textWrap="true"/>
<Button text="Back" textWrap="true" row="0" col="0" tap="{{ goBack }}"/>
<Button text="Something" textWrap="true" row="0" col="2"/>
</GridLayout>
</ActionBar>

<ScrollView class="page">
<StackLayout class="p-20">
</StackLayout>
</ScrollView>
<ScrollView class="page">
<StackLayout class="p-20">
</StackLayout>
</ScrollView>
</Page>
41 changes: 11 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/scss/mixins/components/_action-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
text-transform: none;
font-weight: normal;

.ns-ios &,
.ns-ios &:active {
@include colorize($background-color: transparent);
}

&:active {
opacity: .7;
}
Expand Down Expand Up @@ -118,6 +113,11 @@
$color: ab-color
);
}

.ns-ios &,
.ns-ios &:active {
@include colorize($background-color: transparent);
}
}

@if not $compat {
Expand Down
14 changes: 6 additions & 8 deletions src/scss/mixins/components/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@

@mixin slider-skin($selectors) {
#{$selectors} {
@include colorize($background-color: accent);

.ns-android & {
@include colorize($color: accent);
}
@include colorize(
$color: accent,
$background-color: accent
);

&[isEnabled=false],
.ns-android &[isEnabled=false] {
Expand Down Expand Up @@ -162,11 +161,10 @@
}

.ns-ios & {
$off-background-color: transparent;

@include colorize(
$color: background,
$background-color: accent
$background-color: accent,
$off-background-color: background-alt-10
);

&[isEnabled=false] {
Expand Down

0 comments on commit 06ea424

Please sign in to comment.