Giter Site home page Giter Site logo

tomloprod / cordova-plugin-headercolor Goto Github PK

View Code? Open in Web Editor NEW
65.0 6.0 8.0 127 KB

HeaderColor is a cordova plugin to change color of header in multitask view. Android devices.

License: MIT License

Java 83.52% JavaScript 16.48%
cordova-plugin headercolor android

cordova-plugin-headercolor's People

Contributors

rickgbw avatar tomloprod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-headercolor's Issues

Cannot read property 'tint' of undefined

Hello, I'm following the same instalation and usage instructions from here https://ionicframework.com/docs/native/header-color/ but when trying to use tint, I get:

`Uncaught TypeError: Cannot read property 'tint' of undefined
    at Object.222 (main.js:139)
    at __webpack_require__ (vendor.js:55)
    at Object.199 (main.js:94)
    at __webpack_require__ (vendor.js:55)
    at webpackJsonpCallback (vendor.js:26)
    at main.js:1`

My page where I use it:

`

...
import { HeaderColor } from '@ionic-native/header-color';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  constructor(private headerColor: HeaderColor,private geofence: Geofence,private gyroscope: Gyroscope,private extendedDeviceInformation: ExtendedDeviceInformation,private document: DocumentViewer,private emailComposer: EmailComposer,public navCtrl: NavController) {

    this.headerColor.tint('#becb29');
    }

}`

App.module:

`
...

import { HeaderColor } from '@ionic-native/header-color';


this.headerColor.tint('#becb29');

@NgModule({
  declarations: [
    MyApp,
    HomePage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    EmailComposer, DocumentViewer, ExtendedDeviceInformation, Gyroscope, Geofence, HeaderColor
`

If I use it setting the color in the config.xml it works tho, but I'd like to get this working if possible.

My Ionic info:

`cli packages: (C:\Users\Ulises\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.11
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.11.3
    npm               : 5.6.0
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\Ulises\AppData\Local\Android\Sdk

Misc:

    backend : pro`

Thanks.

Header text color

I don't know how dificult could be, but would be great being able to change also the text color.

Ionic 4 beta 17 - Freeze after splash screen

The plugin is freezing the application after splash screen load.

Ionic:

   ionic (Ionic CLI)             : 4.5.0 
   Ionic Framework               : @ionic/angular 4.0.0-beta.17
   @angular-devkit/build-angular : 0.7.5
   @angular-devkit/schematics    : 0.7.5
   @angular/cli                  : 6.1.5
   @ionic/angular-toolkit        : 1.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 7.1.2
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 11 other plugins)

System:

   Android SDK Tools : 26.1.1 
   NodeJS            : v11.4.0 
   npm               : 5.6.0
   OS                : Linux 4.15

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.