Skip to content

Commit

Permalink
add ability to change titlebar text
Browse files Browse the repository at this point in the history
  • Loading branch information
bkalaldeh committed Sep 30, 2024
1 parent f57fc1f commit 5cea931
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BuildFireSDK",
"version": "1.103.1",
"version": "1.104.0",
"description": "This SDK helps in building BuildFire Plugins",
"main": "index.js",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions pluginTester/scripts/framework/app.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pluginTester/scripts/framework/web.min.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions pluginTester/styles/appStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -1188,13 +1188,22 @@ screen and (min-device-width: 393px) and (min-device-height: 852px) and (max-dev
--extra-padding: 11px;
}
}
@media only
screen and (min-device-width: 440px) and (min-device-height: 956px) and (max-device-height: 956px) and (-webkit-device-pixel-ratio: 3),
screen and (min-device-width: 402px) and (min-device-height: 874px) and (max-device-height: 874px) and (-webkit-device-pixel-ratio: 3) {
:root {
--extra-padding: 15px;
}
}

/* iPhone X, Xr, Xs and Xs Max*/
@media only
screen and (min-device-width: 375px) and (max-device-height: 896px) and (min-device-height: 812px) and (-webkit-device-pixel-ratio: 3),
screen and (min-device-width: 375px) and (min-device-height: 812px) and (max-device-height: 896px) and (-webkit-device-pixel-ratio: 2),
screen and (min-device-width: 428px) and (min-device-height: 926px) and (max-device-height: 926px) and (-webkit-device-pixel-ratio: 3),
screen and (min-device-width: 430px) and (min-device-height: 932px) and (max-device-height: 932px) and (-webkit-device-pixel-ratio: 3) {
screen and (min-device-width: 430px) and (min-device-height: 932px) and (max-device-height: 932px) and (-webkit-device-pixel-ratio: 3),
screen and (min-device-width: 440px) and (min-device-height: 956px) and (max-device-height: 956px) and (-webkit-device-pixel-ratio: 3),
screen and (min-device-width: 402px) and (min-device-height: 874px) and (max-device-height: 874px) and (-webkit-device-pixel-ratio: 3) {

/* iOS Transparent Nav */
html[ios="true"][view="app"][storyboard-launch-images="true"] #pluginNav{
Expand Down Expand Up @@ -1222,7 +1231,8 @@ screen and (min-device-width: 430px) and (min-device-height: 932px) and (max-dev
html[ios="true"][view="app"][storyboard-launch-images="true"] .menu-location{
top: calc(47px + var(--extra-padding)) !important;
}
html[ios="true"][view="app"][storyboard-launch-images="true"] #pluginNav a.menu-btn-icon{
html[ios="true"][view="app"][storyboard-launch-images="true"] #pluginNav a.menu-btn-icon,
html[ios="true"][view="app"][storyboard-launch-images="true"] #launcherIap .iap-subscriptions {
top: calc(37px + var(--extra-padding)) !important;
}
html[ios="true"][view="app"][storyboard-launch-images="true"] .search-container{
Expand Down
2 changes: 1 addition & 1 deletion scripts/_bundles/buildfire_lightcarousel.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/_bundles/buildfire_lightcarousel.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/_bundles/jquery_angular_buildfire_smartcrop.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions scripts/buildfire.js
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,10 @@ var buildfire = {
var p = new Packet(null, 'appearance.titlebar.isVisible');
buildfire._sendPacket(p, callback);
},
setText: function(options, callback) {
var p = new Packet(null, 'appearance.titlebar.setText', options);
buildfire._sendPacket(p, callback);
}
}, navbar: {
show: function(options, callback) {
var p = new Packet(null, 'appearance.navbar.show');
Expand Down
2 changes: 1 addition & 1 deletion scripts/buildfire.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/buildfire.min.js.map

Large diffs are not rendered by default.

0 comments on commit 5cea931

Please sign in to comment.