I want to change my nuxeo application logo. I've read how to change it for login page and it's working , but now i want to change logo for all my page and i can't find any tutorial of how to do this.
Here is what i've tried so far:
<component name="org.nuxeo.sample.loginPage">
<extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService" point="loginScreen">
<loginScreenConfig>
<disableBackgroundSizeCover>false</disableBackgroundSizeCover>
<headerStyle></headerStyle>
<footerStyle></footerStyle>
<loginBoxWidth>400px</loginBoxWidth>
<logoUrl>${org.nuxeo.ecm.contextPath}/img/logo12.png</logoUrl>
<logoAlt>MyCompany</logoAlt>
<logoWidth>113</logoWidth>
<logoHeight>20</logoHeight>
<newsIframeUrl>https://www.nuxeo.com/embedded/dm-login</newsIframeUrl>
</loginScreenConfig>
</extension>
</component>
You got it for the login screen. For the other pages, give a look at the org.nuxeo.theme.styling.service component and its flavors extension point.
You will need such an XML contribution:
<extension target="org.nuxeo.theme.styling.service" point="flavors">
<flavor name="myCompanyFlavor" extends="default">
<logo>
<path>/img/logo12.png</path>
<previewPath>/img/logo12.png</previewPath>
<width></width>
<height></height>
<title>MyCompany</title>
</logo>
</flavor>
</extension>
Related
I want to set a custom notification icon to appear in my notifications panel for my flutter app when i use fcm(firebase cloud messaging) but there is only a grey circle that appears and no icon .
After Searching for a long time i finally found the answer and here it is:
Create a custom notification icon using this tool.
Paste the generated list of icons in android/app/src/main/res.
Go to your manifest android/app/src/main/AndroidManifest.xml and add the following meta data in the application (not activity) tag:
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="#drawable/ic_notification" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="#color/colorPrimary" />
If you don't have a colors.xml in res/values, create one:
Done! It should work, let me know if it doesn't.
Discussion for the question is here.
I'am trying to add a splash screen on my application , i'am pretty sure i made all the steps correctly
I've added my picture on launch_background.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="#android:color/black"/>
<item>
<bitmap
android:gravity="center"
android:src="#drawable/1-ZID-SplashScreen" />
</item>
</layer-list>
And i have added the path of the picture which is located on drawable folder on pubsec.yaml
flutter:
assets:
- assets/images/
- assets/google_fonts/
- android/app/src/main/res/drawable/
But still the splash screen stills white, help me resolve this please ^^
Thanks.
You can use flutter_native_splash it will help you achieve what you want
You can add a native splash screen to your app in 02 ways.
Using flutter package.
This is the easiest way to add a splash screen for your flutter app. (You don't need to have prior Native android & ios development knowledge).
Link to package:- package
This video shows that how to use this package:- video tutorial
Without using flutter package (Native way)
For this method, you needed to have prior native android & ios development experience.
If you had native development experience, you can use the below links to see the steps.
Link
As I know, the ressource name (in your case "android:src="#drawable/1-ZID-SplashScreen") should start with a letter not a number (google the android ressources naming convention for more information).
I am using flutter_inappwebview: ^5.3.0 package in my app, i am achieving every requirement of my app except I can't upload picture in my web view.
As soon as i click the icon the app crashes.
I have tried achieving this with flutter_webview_plugin but there are number of other issues i can't solve with that, so i decided to give inappwebview a try, but i am stil stuck at this.
On Android, you need to add the following codes inside the tag of your android/app/src/main/AndroidManifest.xml:
<provider
android:name="com.pichillilorenzo.flutter_inappwebview.InAppWebViewFileProvider"
android:authorities="${applicationId}.flutter_inappwebview.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
I have build a TWA as described at https://developers.google.com/web/updates/2019/02/using-twa
I want to remove the bottom navigation bar. I have read that it can only be done programmatically with IMMERSIVE mode : https://developer.android.com/training/system-ui/immersive.html
So i need to add a Class associated to the activity "android.support.customtabs.trusted.LauncherActivity" and to add the hideSystemUI() code in onCreate() i guess.
How to do that ?
Here is the manifest :
....
<activity
android:name="android.support.customtabs.trusted.LauncherActivity"
android:theme="#style/Theme.LauncherActivity"
android:label="#string/app_name">
....
How to code the immersive mode for this activity ?
Using Bubblewrap
When using Bubblewrap (recommended), you will be asked which display mode the application should use as part of the init command.
If you have already initialized the application, modify twa-manifest.json, set display to fullscreen.
In AndroidManifest.xml
When building the application yourself and using the default LauncherActivity, you can get set the following meta-tag as part of the Activity definition in AndroidManifest.xml:
<meta-data android:name="android.support.customtabs.trusted.DISPLAY_MODE"
android:value="immersive" />
I have a .xib file. I open it up with textfile or Dashcode or what ever.
Say it has 4 buttons on it. All the same but with different titles.
My goal is to change the color, font, and background image outside of xcode automatically and then import the file into xcode.
However these things are represented by a reference number that I can't seem to find any where in my project folder connecting it to the actual image, color, or font.
<reference key="IBUINormalBackgroundImage" ref="650551563"/> <!-- Button Background -->
So a button looks like this
`<!-- Button 1 -->
<object class="IBUIButton" id="580622739">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 124}, {280, 37}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="810145050"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="881065587"/> <!-- Button Font Type -->
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Facebook</string> <!-- Button Name -->
<reference key="IBUIHighlightedTitleColor" ref="587412318"/>
<reference key="IBUINormalTitleColor" ref="523599070"/> <!-- Button Font Color -->
<reference key="IBUINormalTitleShadowColor" ref="457053782"/>
<reference key="IBUINormalBackgroundImage" ref="650551563"/> <!-- Button Background -->
</object>
`
EDIT: Based on some responses. What I can do is drag and drop a xib into xcode now. But when I am making a new app I want to use an existing xib but with different colors. I will use php to auto create this code file. Then just drag and drop again. I have done this for all my .h and .m and viewcontrollers. I need to figure this out for .xibs.
The xib files contain XML generated by IB in XCode. If you edit this XML, there is no guarantee that your changes won't get wiped out by IB the next time it writes the file.
But if I understand you correctly, you are trying to peek at the xib contents to get a better understanding of how to create a UI programmatically. Programmatically generated UI's are not done by writing xib files. You may get a hint about what parameters can be configured in IB, but there is a lot of content in a xib that is distracting, if that's what you are trying to do.
Previously in Xcode 3.2 and earlier, there was Interface Builder app which was functioning outside of Xcode... but now it is a part of Xcode. You can google for Interface Builder now also...But i think apple does not allow you to have Interface Builder separately....
general link : http://guides.macrumors.com/Interface_Builder
I am working on a xib decoder written in c# and even if for the moment it's not possible to edit a xib file it's possible to display it and see what it looks like. The xib parser is open-source and is a translation of the open source implementation of Cocoa called GNUstep.
Parser is available here : https://github.com/smartmobili/CocoaBuilder.