Skip to content

Commit

Permalink
fix navigation bar color, remove shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc committed Oct 11, 2023
1 parent 36c030a commit dba3f73
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 4 additions & 1 deletion ios/App/App/capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"webDir": "www",
"plugins": {
"SplashScreen": {
"launchShowDuration": 3000,
"launchAutoHide": false,
"androidScaleType": "CENTER_CROP"
},
"CapacitorHttp": {
"enabled": true
}
}
}
1 change: 0 additions & 1 deletion ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'ByteowlsCapacitorOauth2', :path => '../../node_modules/@byteowls/capacitor-oauth2'
pod 'CapacitorCommunityHttp', :path => '../../node_modules/@capacitor-community/http'
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
pod 'CapacitorBrowser', :path => '../../node_modules/@capacitor/browser'
pod 'CapacitorClipboard', :path => '../../node_modules/@capacitor/clipboard'
Expand Down
10 changes: 7 additions & 3 deletions src/app/utils/ThemeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export default class ThemeUtils {
this.storage.setObject(STORAGE_KEY, { theme: themeString, themeColor: themeColor } as StoredTheme)
this.userPreference = themeString
this.currentThemeColor = themeColor

this.toggleWinter(await this.isWinterEnabled(), false)
}

Expand Down Expand Up @@ -191,6 +190,11 @@ export default class ThemeUtils {
}, 250)
}

/**
*
* @param isDarkThemed Android bottom button bar
* @returns
*/
private async changeNavigationBarColor(isDarkThemed) {
if (!this.platform.is('android') && !this.platform.is('ios')) return
try {
Expand All @@ -210,10 +214,10 @@ export default class ThemeUtils {
}
}

private async changeStatusBarColor(color, isDarkThemed) {
private async changeStatusBarColor(color: string, isDarkThemed) {
let darker = isDarkThemed ? '#000000' : color.trim() //this.shadeColor(color, -12)
if (this.platform.is('android')) {
const themeColor = await this.getThemeColor()
let darker = isDarkThemed ? '#000000' : color //this.shadeColor(color, -12)
if (themeColor == 'ethpool') {
darker = isDarkThemed ? '#262327' : '#e1d8d8'
}
Expand Down
5 changes: 5 additions & 0 deletions src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ cdk-virtual-scroll-viewport {
display: none;
}

.header-md {
-webkit-box-shadow: none !important;
box-shadow: none !important;
}

h1,
h2,
h3 {
Expand Down

0 comments on commit dba3f73

Please sign in to comment.