Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change the background color of the Google Alert view #9

Open
malhajj opened this issue Jun 17, 2017 · 7 comments
Open

Ability to change the background color of the Google Alert view #9

malhajj opened this issue Jun 17, 2017 · 7 comments

Comments

@malhajj
Copy link

malhajj commented Jun 17, 2017

Most of the apps nowadays, show Google authentication popup, for which the background color is transparent and not gray as in this module.

Thanks, for this great module.

@AppWerft
Copy link
Owner

This comes from system, maybe can theming help you.

@malhajj
Copy link
Author

malhajj commented Jun 17, 2017

The case is that I don't want to change the theme of the whole app, I just want to change the theme of this popup.

Thanks

@malhajj
Copy link
Author

malhajj commented Jun 17, 2017

If we can pass theme attribute to this module, the same as titanium did for Windows component where you can define a specific theme for it in Android.

@AppWerft
Copy link
Owner

you can modify theme of a single activity. Please google to inform how can you style the GoogleLogin stuff native

@chmiiller
Copy link
Collaborator

Someone know where to start? It would be nice if that was easy to setup

@hansemannn
Copy link
Contributor

You just need to assign a theme to the com.google.android.gms.auth.api.signin.internal.SignInHubActivity activity which is injected via the timodule.xml. So if you override it in your tiapp.xml and assign the theme there, it should work. We are interested in this as well, but haven't had the chance to test it so far.

@hansemannn
Copy link
Contributor

hansemannn commented Mar 22, 2019

Okay, this was too simple. Here you go:

<activity
  android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
  android:excludeFromRecents="true"
  android:exported="false"
  android:screenOrientation="portrait"
  android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
  android:theme="@android:style/Theme.Translucent.NoTitleBar" />

Also included in my refactoring PR (#32). 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants