Skip to content

Commit

Permalink
Merge pull request #527 from smartdevicelink/release/0.13.0
Browse files Browse the repository at this point in the history
Release 0.13.0
  • Loading branch information
ShobhitAd authored Oct 26, 2022
2 parents 6a497d6 + 7035405 commit 65f7c27
Show file tree
Hide file tree
Showing 19 changed files with 112 additions and 56 deletions.
30 changes: 18 additions & 12 deletions src/css/components/_app-services-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,45 +205,51 @@
.app-service-nav-card {
border-bottom: 1px solid #49C7ED;
.svg-size {
@include size(100px);
min-width: 100px;
@include size(70px);
min-width: 70px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
svg {
@include size(75px);
padding: 10px;
}
}

.app-service-icon {
@include size(100px);
min-width: 100px;
@include size(70px);
min-width: 70px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
img {
@include size(75px);
@include size(50px);
}
}

.nav-color {
background-color: #006600;
}
}

.app-service-media-card {
border-bottom: 1px solid #49C7ED;
.svg-size {
@include size(100px);
min-width: 100px;
@include size(70px);
min-width: 70px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
svg {
@include size(65px);
padding: 10px;
}
}

.app-service-icon {
@include size(100px);
min-width: 100px;
@include size(70px);
min-width: 70px;
display: flex;
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -274,7 +280,7 @@
align-items: center;
border-radius: 10px;
svg {
@include size(50px);
padding: 10px;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/css/components/_control-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
@include size(75px);
display: flex;
align-items: center;
justify-content: center;
img {
max-width: 100%;
}
Expand Down
7 changes: 5 additions & 2 deletions src/css/components/_double-graphic-with-softbuttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
height:100%;
max-height: 100%;
max-width: 100%;
padding: 10px;
object-fit: contain;
display: flex;
}
Expand Down Expand Up @@ -58,8 +59,10 @@
padding: 5px;
}

.double-graphic-with-softbuttons-template .soft-button .soft-button-image-static {
padding: 5px;
.double-graphic-with-softbuttons-template .soft-button .soft-button-image {
max-width: 75px;
display: flex;
align-items: center;
}

.double-graphic-with-softbuttons-template .soft-button:last-child {
Expand Down
1 change: 1 addition & 0 deletions src/css/components/_h-scroll-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
height: calc(#{$master-height} - 140px);
overflow-y: auto;
padding: calc(#{$master-height} / 21.6) 0px 0 0px;
scrollbar-width: none;

@include display(flex);
@include flex-direction(row);
Expand Down
4 changes: 4 additions & 0 deletions src/css/components/_large-graphic-with-softbuttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@
.large-graphic-with-softbuttons-template .soft-button-image-static {
max-height: 50px;
min-width: 50px;
svg {
max-height: 50px;
max-width: 50px;
}
}
2 changes: 2 additions & 0 deletions src/css/components/_non-media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@
.soft-button-image {
height: 75px;
max-width: 100%;
display: flex;
align-items: center;
img {
max-width: 100%;
max-height: 100%;
Expand Down
7 changes: 7 additions & 0 deletions src/css/components/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,11 @@
@include align-items(center);
padding: 20px;
cursor: pointer;
width: 45%;
}

.slider-button-group {
display: flex;
flex-direction: row;
justify-content: space-between;
}
4 changes: 2 additions & 2 deletions src/css/components/_v-scroll-menu-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@

div {
width: 100%;
height: 85%;
min-height: 85%;
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
padding: 0;

canvas {
margin:auto;
Expand Down
3 changes: 2 additions & 1 deletion src/css/components/_v-scroll-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
}

div::-webkit-scrollbar {
display: none;
display: none;
scrollbar-width: none;
}
8 changes: 7 additions & 1 deletion src/js/AppHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ class AppHeader extends React.Component {
sliderName={this.props.sliderName}
sliderAppId={this.props.sliderAppId}
sliderData={this.props.sliderData}
submitCallback={ () => { this.closeSlider({closeReason: "SUBMIT"}) } }
submitCallback={ (success) => {
if (success) {
this.closeSlider({closeReason: "SUBMIT"})
} else {
this.closeSlider()
}
} }
theme={this.props.theme}
/>
</Modal>
Expand Down
4 changes: 2 additions & 2 deletions src/js/AppServiceMediaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default class AppServiceMediaCard extends React.Component {
{mediaData.artist}
</p>) : null;

var albumLine = mediaData.title ? (
var albumLine = mediaData.album ? (
<p className="t-light t-small th-f-color">
{mediaData.title}
{mediaData.album}
</p>
) : null;

Expand Down
12 changes: 5 additions & 7 deletions src/js/AppServiceWeatherCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ export default class AppServiceWeatherCard extends React.Component {
var currentLine = weatherData.currentTemperature ? (
<div className="weather-line t-large">
<p className="t-medium">
{weatherData.currentTemperature + "°"}
{weatherData.currentTemperature.toFixed(0) + "°"}
</p>
</div>
) : null;

var highLowLine = weatherData.high && weatherData.low ? (
<div className="weather-line t-large">
<p className="t-medium">
{weatherData.high + "°"}
{weatherData.high.toFixed(0) + "°"}
</p>
<p className="t-light space-left">
{"/ " + weatherData.low + "°"}
{"/ " + weatherData.low.toFixed(0) + "°"}
</p>
</div>
) : null;
Expand All @@ -41,7 +41,7 @@ export default class AppServiceWeatherCard extends React.Component {
var windMPHLine = weatherData.windMPH ? (
<div className="weather-line baseline">
<p className="t-medium t-large">
{weatherData.windMPH}
{weatherData.windMPH.toFixed(0)}
</p>
<p className="t-small t-medium ">
mph
Expand All @@ -54,9 +54,7 @@ export default class AppServiceWeatherCard extends React.Component {

return (
<div className="app-service-weather-card app-service-medium-tab th-f-color">
<div className="weather-line">
<WeatherServiceImage image={weatherData.weatherIcon}/>
</div>
<WeatherServiceImage image={weatherData.weatherIcon}/>
{currentLine}
{highLowLine}
{precipProbabilityLine}
Expand Down
10 changes: 5 additions & 5 deletions src/js/AppServicesNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ class AppServicesNav extends React.Component {
var currentForecast = serviceData.currentForecast

weatherData = {
high: currentForecast.temperatureHigh ? currentForecast.temperatureHigh.value: 0,
low: currentForecast.temperatureLow ? currentForecast.temperatureLow.value : 0,
precipProbability: currentForecast.precipProbability *100,
windMPH: currentForecast.windSpeed,
currentTemperature: currentForecast.currentTemperature ? currentForecast.currentTemperature.value : 0,
high: currentForecast.temperatureHigh ? parseFloat(currentForecast.temperatureHigh.value): 0,
low: currentForecast.temperatureLow ? parseFloat(currentForecast.temperatureLow.value) : 0,
precipProbability: currentForecast.precipProbability * 100,
windMPH: parseFloat(currentForecast.windSpeed),
currentTemperature: currentForecast.currentTemperature ? parseFloat(currentForecast.currentTemperature.value) : 0,
weatherIcon: currentForecast.weatherIcon ? currentForecast.weatherIcon : null
}
}
Expand Down
1 change: 1 addition & 0 deletions src/js/Controllers/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default class Controller {
this.subscribeToNotification("BasicCommunication.OnSystemCapabilityUpdated")
this.subscribeToNotification("AppService.OnAppServiceData")
this.subscribeToNotification("BasicCommunication.OnAppCapabilityUpdated")
this.subscribeToNotification("UI.OnRecordStart")

var onSystemTimeReady = {
"jsonrpc": "2.0",
Expand Down
24 changes: 11 additions & 13 deletions src/js/Controllers/DisplayCapabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ let textWithGraphicCapabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -228,7 +227,6 @@ let textbuttonsWithGraphicCapabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -292,7 +290,6 @@ let tilesWithGraphicCapabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 150),
imageField("subMenuIcon", 150),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 40),
imageField("menuSubMenuSecondaryImage", 40),
imageField("appIcon", 50),
Expand Down Expand Up @@ -357,7 +354,6 @@ let graphicWithTextAndSoftbuttonsCapabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -429,7 +425,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -492,7 +487,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -530,6 +524,16 @@ let capabilities = {
textField("initialInteractionText", 50),
textField("sliderHeader", 70),
textField("sliderFooter", 70),
textField("subtleAlertText1"),
textField("subtleAlertText2"),
textField("subtleAlertSoftButtonText"),
textField("menuName"),
textField("secondaryText"),
textField("tertiaryText", 20),
textField("menuCommandSecondaryText"),
textField("menuCommandTertiaryText", 20),
textField("menuSubMenuSecondaryText"),
textField("menuSubMenuTertiaryText", 20),
textField("audioPassThruDisplayText1", 50),
textField("audioPassThruDisplayText2", 50)
],
Expand Down Expand Up @@ -589,7 +593,6 @@ let capabilities = {
imageField("softButtonImage", 50),
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("secondaryImage", 85),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -652,7 +655,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -710,7 +712,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -765,7 +766,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -829,7 +829,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -889,7 +888,6 @@ let capabilities = {
imageField("menuIcon", 40),
imageField("cmdIcon", 85),
imageField("subMenuIcon", 85),
imageField("secondaryImage", 40),
imageField("menuCommandSecondaryImage", 80),
imageField("menuSubMenuSecondaryImage", 80),
imageField("appIcon", 50),
Expand Down Expand Up @@ -1067,7 +1065,7 @@ const mainWindowTypeCapability = {
}

const dynamicUpdateCapabilities = {
supportedDynamicImageFieldNames: ["subMenuIcon", "menuIcon", "secondaryImage"],
supportedDynamicImageFieldNames: ["subMenuIcon", "menuIcon"],
supportsDynamicSubMenus: true
}

Expand Down
Loading

0 comments on commit 65f7c27

Please sign in to comment.