Unable to use only Light or Dark theme on Nativescript - nativescript-angular

I'm developing a Nativescript (version 6.3.3) app with Angular 8.2 and #nativescript/theme 2.2.1 with scss themes.
I'm trying to use only Dark (or only Light) theme regardless of system mode (Dark/Light) but nothing seems to work.
I followed this guide https://github.com/NativeScript/theme and I used custom color variables setting the dark ones equal to the light ones but it doesnt' work.
Can someone support me?

If you want to force Light or Dark mode only on iOS you can add the following to your Info.plist file.
For light mode:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
For dark mode:
<key>UIUserInterfaceStyle</key>
<string>Dark</string>
Hope this helps!

Also {N} Theme 2.3.x have some important fixes to force the mode. Try with 2.3.2.

For Android,
First add this code in main.ts or main.js
import Theme from "#nativescript/theme";
Theme.setMode(Theme.Light);
Then change this value in styles.xml file located in folder values-v29 from true to false
<item name="android:forceDarkAllowed">false</item>

Related

How do I change the color of the visual studio code toolbar?

hello, my question is the following, in the new visual studio code update, for Ubuntu Linux, the toolbar (attached photo) we can see that it is white, and it was to know if it can be changed to black as it was in previous updates, and how is it done? ... thanks
For the people who are looking for a new solution:
In the latest version of VSCode, you can add
"window.titleBarStyle": "custom"
to your settings.json file and it should use your vscode theme for the border/titlebar
The GTK Dark Title Bar could be the solution to your problems.
I also want to leave some more references to the various issues opened on the official vscode repo in the past years about this problem so that you can give a reading and get an idea of what happened.
#16363 - Allow to change the background color of menu bar (Windows & some Linux)
#11979 - Support dark theme in Gnome
#30031 - Add a way to choose theme variant (Gnome dark/light theme)
#45968 - Set the _GTK_THEME_VARIANT X11 property on top-level window to use "dark" theme on Gnome

Change Text Highlight Color in Eclipse Console

Question
Is it at all possible to change the color of the text highlight in Eclipse console to something more visible in Manjaro Linux? Your time and help are both much appreciated.
Important notes
I am using the default GTK theme. I do not want to use a different theme.
For testing, I have tried using a different theme, but that didn't help.
Problem
Currently, I am stuck with a barely visible light grey text selection in Eclipse console in the following two scenarios:
When manually selecting text
When using the Find\Replace... search function
Supporting screenshots
Manual mouse text selection:
Find/Replace... selection:
Looking into and changing these settings did not help:
I once ran into the same problem and used the gnome-color-chooser to resolve this issue.
You have to change property selected_bg_color value in your current GTK theme gtkrc file. I am using Ambiance theme.
So my setting are:
cat /usr/share/themes/Ambiance/gtk-2.0/gtkrc | more
gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#000000\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#F2F1F
0\ntooltip_bg_color:#f5f5c5\nlink_color:#DD4814"
Also refer these post which helps you in future for similar kinds of problems.
Change Eclipse sidebar vertical scope highlighting
eclipse-on-ubuntu-fixing-the-black-background-color-in-hover

How to change toolbars thick on eclipse? (Manjaro Linux - XFCE)

so I want to make eclipse to look a little more "compact", this, referring to the toolbar thickness. I've changed the tabs width and font size following the instructions here: Eclipse Luna UI rendering in Linux
I'd like to know if there's a way to change also that "gap" on the toolbars so I can get a little more space.
Here's a SS of my eclipse running: http://www.subeimagenes.com/img/ss-1138171.png
and I want to remove or reduce that gap I'm putting on red, any help/comment would be nice.
Thanks in advance!
Since eclipse 4.x you can modify the look and fill of controls and workspaces using CSS. See this Eclipse 4 CSS Styling- Tutorial it should help.

Change base color in sencha touch for themes other than the default theme

I'm unable to change the base color of themes other than the default theme.
For ex: I can't change the base color of windows theme from black to any other color I want.
Can somebody please tell me how to change that?
I used the $base-color variable in app.scss
Please note that I tried using $base-color variable above and also below the import lines.
Also, there is no compile error after compiling it using compass.
And yeah, it's working with the default theme of sencha.

Changing color of Eclipse links in quick fix or Eclipse links in preferences on Linux

if i use a dark theme then links in Eclipse-"quick fix" or in i.e. Eclipse->Preferences->General->Editor (the three 'see... "File Associaton"|"Content Types"|"Appearance"'-links) are unreadable.
On this image the links i am talking about are cyan on grey:
I found a solution for Windows/XP:
The hover uses the same colors as the on your system. On Windows you
can change that via Display settings > Appearance > Advanced: ToolTip.
The link color is the one used in your browser (IE on Windows).
However, i need a solution for Linux (XFCE 4.8.1/GTK)
I checked/tested all settings of Eclipse and i found no setting for this link-color. It seems to be a system-setting (GTK), so i already tried to add this to gtkrc:
style "default" {
GtkWidget::link-color = "#ffffff"
}
class "GtkWidget" style "default"
but this did not change the link color in Eclipse.
I hope you can help - thanks!
GNOME
http://devblog.virtage.com/2013/06/eclipse-and-eclipse-based-apps-on-ubuntu-13-04-desktop-hacks/
KDE
Use the colors menu (the first entry in the picture):
And redefine the tooltip background color:
Then enjoy the readable popups:
Install gnome-color-chooser and customize the tooltip color as described here:
http://www.devsniper.com/black-tooltip-in-eclipse-on-ubuntu-12-04/
I'll chime in here, since I have the same issue.
There is no fix for this, when running Eclipse on Unix (KDE, Gnome, etc).
The color for links, which is used in the QuickFix list as well as various other places in the UI (such as Preferences panels), is hardcoded.
On Windows, you are luckier, since Eclipse uses the native link widget, which takes its colors from system settings.
On non-Windows, you are stuck with a dark-blue hardcoded color.
What it should do, at least on GTK, is use the GtkWidget::link-color setting. But it doesn't, currently.
If you want to see it fixed, either upvode this bug or fix the code yourself:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=130444
Sad, I know ):
Check out this post https://stackoverflow.com/questions/96981/color-themes-for-eclipse or have a look at the Eclipse color themes site.

Resources