Apply GTK3 theme systemwide - gtk

Task / Problem:
I have a self-created gtk3-theme in ~/.local/share/themes/mytheme/gtk-3.0/gtk.css. I would like to apply that style systemwide. How would I do that?
System:
XUbuntu 19.04
GTK version: 3.24
What I did / have:
Prepare ~/.local/share/themes/mytheme/gtk-3.0/gtk.css
Created ~/.local/share/themes/mytheme/index.theme with the following content:
Type=X-GNOME-Metatheme
Name=mytheme
Comment=mytheme
Encoding=UTF-8
[X-GNOME-Metatheme]
GtkTheme=mytheme
MetacityTheme=mytheme
ButtonLayout=:minimize,maximize,close
Created ~/.local/share/themes/mytheme/gtk-3.0/gtk.gresource.xml with the following content:
<?xml version='1.0' encoding='UTF-8'?>
<gresources>
<gresource prefix='/usr/darktrick/gtk-3.0'>
<file preprocess='to-pixdata'>images/icon_close.png</file>
<file preprocess='to-pixdata'>images/icon_close_active.png</file>
<file preprocess='to-pixdata'>images/icon_maximize.png</file>
<file preprocess='to-pixdata'>images/icon_minimize.png</file>
<file>gtk.css</file>
</gresource>
</gresources>
Tested css with GtkInspector (under CSS): worked fine
Theme is available in GtkInspector under Visual to be applied manually.
edit: I have chosen mytheme through the WindowManager dialog.

I stumbled across the answer.
Open "Settings Editor" -> channel "xsettings" -> Net -> ThemeName -> Type the folder name of the theme you'd like to have applied

Related

phpcs with VScode - how do I disable the line length warning?

I am working on some legacy code, and VScode is highlighting a lot of lines because of some warnings like Line exceeds 85 characters, contains 91 characters. It's pretty annoying, and I'd like to raise that limit to at least 120 chars, or even disable it completely.
My vertical ruler is already set to 120.
How can I move or remove that limit? I've been looking everywhere but I can't find a a working answer... this is my project's settings.json
{
"editor.wordWrapColumn": 120
}
Edit phpcs settings in VS Code and make sure "PHP Sniffer: Standard" is blank (so that it looks for your custom ruleset file).
Create file "phpcs.xml" in your project root, containing a ruleset like:
<?xml version="1.0"?>
<ruleset name="MyRuleset">
<!-- Scan all files in directory -->
<file>.</file>
<!-- Ignore Composer dependencies -->
<exclude-pattern>vendor/</exclude-pattern>
<!-- Show colors in console -->
<arg value="-colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Use PSR-12 as a base -->
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength.TooLong">
<severity>0</severity>
</rule>
</ruleset>

Define file type for .env files

As far as I know NetBeans IDE does not support or have a plugin that supports .env files (typically used to implement Store config in the environment) but I've found that Ini files support is good enough for my use case (I get syntax highlighting and Toggle Comment command. However, I'm unable to set the file type for a file that starts with a dot. I works fine for foo.env but not .env (it's handled as plain text).
I found a related question (how to set file type for foo.blade.php) and I'm able to bypass the GUI restriction (you cannot enter a file extension with a dot) with a custom user-defined-mime-resolver.xml file. I've tried two variations:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.1//EN" "http://www.netbeans.org/dtds/mime-resolver-1_1.dtd">
<MIME-resolver>
<file>
<ext name=".env"/>
<ext name="env"/>
<resolver mime="text/x-ini"/>
</file>
</MIME-resolver>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.1//EN" "http://www.netbeans.org/dtds/mime-resolver-1_1.dtd">
<MIME-resolver>
<file>
<ext name="env"/>
<name name=".env" substring="true"/>
<resolver mime="text/x-ini"/>
</file>
</MIME-resolver>
Can you figure out a trick or workaround or spot something I've missed? (Im using build NetBeans IDE Dev Build 201804200002 if that matters.)

netbeans application platform 8 remove undo redo button

netbeans application platform 8 remove undo / redo button
how to remove the default saveall undo and redo buttons from the toolbar of a NetBeans Platform Application 8.
I found an article describing how to edit the --> Important Files / XML Layer / / Toolbars
but i think that is only applicable for netbeans <= 6.9
How to remove those buttons on NetBeans Platform Application 8.
Declare following layers.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC '-//NetBeans//DTD Filesystem 1.2//EN' 'http://www.netbeans.org/dtds/filesystem-1_2.dtd'>
<filesystem>
<folder name="Toolbars">
<folder name="File_hidden"/>
<folder name="Clipboard_hidden"/>
<folder name="UndoRedo_hidden"/>
</folder>
</filesystem>

Joomla 3.1.4 ,JInstaller: :Install: Cannot find Joomla XML setup file,error

I have setup already joomla 3.1.4 and I tried to install a plugin,But Im getting this error:
JInstaller: :Install: Cannot find Joomla XML setup file
This is my xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/template-install.dtd">
<extension version="3.1" type="plugin" group="content" client="myjoomlasite">
<name>plg_content_helloworld</name>
<author>Tahsin Çetin</author>
<creationDate>July 27th,2013</creationDate>
<copyright>Tahsin Çetin</copyright>
<licence>GNU General Public License</licence>
<authorEmail>tcetin#yandex.com</authorEmail>
<authorUrl>http://tahsincetin.com</authorUrl>
<version>1.1.0</version>
<description>Simple Hello World plugin</description>
<files>
<filename plugin="helloworld">helloworld.php</filename>
<filename>index.html</filename>
<filename>helloworld.xml</filename>
</files>
</extension>
You do not need to specify "helloworld.xml" in your xml file.Remove file and install again.This will be your final xml file-
<?xml version="1.0" encoding="UTF-8"?>
<extension version="3.1" type="plugin" group="content" client="myjoomlasite">
<name>plg_content_helloworld</name>
<author>Tahsin Çetin</author>
<creationDate>July 27th,2013</creationDate>
<copyright>Tahsin Çetin</copyright>
<licence>GNU General Public License</licence>
<authorEmail>tcetin#yandex.com</authorEmail>
<authorUrl>http://tahsincetin.com</authorUrl>
<version>1.1.0</version>
<description>Simple Hello World plugin</description>
<files>
<filename plugin="helloworld">helloworld.php</filename>
<filename>index.html</filename>
</files>
</extension>
Hope this will help.
The "Cannot find Joomla XML setup file" usually means you are trying to install an extension that wasn't designed for the version of Joomla you are installing to.
Read more here
In your opening <extension> tag, you do not need to specify a client attribute.
Where is the XML file in relation to your ZIP package? If it isn't at the top level of the ZIP, it won't be found.
Generally when this happens something is wrong with the XML file. If you have made any changes, try to think where those changes were and find a problem with the XML file.
Problems could be:
No opening or closing tag. Closing tags are easy to miss. Count them, make sure there's an opening and a closing tag.
Duplicated tags. It's easy to add two labels or showons for example, especially if you are copying and pasting.
Space before the opening XML tag
No closing fieldset tag
No closing extension or config tag. Easily deleted if you are replacing the file
You can easily use a tool like this:
https://www.w3schools.com/xml/xml_validator.asp
Which will help you to find issues such as missing opening and closing tags.

How to Configure Rock Star Apps plugin in Eclipse for Concatenating and Compressing Javascripts

I am using the rockstarapps plugin for concatenating and compressing/minifying .js files with Google Closure.
I chose the option to rebuild files when a dependency changes but now I would like to change the dependencies, output file, etc... How do I do that?
What does the 'Add to Auto-Building' option do?
thank you,
DM
In the root of your project is an ant build file called .rockstarapps.
This is Xml and human readable.
The output file is specified near the top: <file name="path/to/file.js">
Auto Building: I assume this adds the file to the build section of .rockstarapps
The autobuilding option will only be activated if the files change, to add a new dependency, go to the .rockstarapps file and add up the line necessary, after saving just change some line into any of the dependencies and the file should be compiled with your new dependencies.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rockstarapps>
<file name="WebContent/js/extlib.core.all.js">
<min>false</min>
<comp>false</comp>
<closureCompiler>false</closureCompiler>
<gZip>false</gZip>
<resolveImports>false</resolveImports>
<urlRewriting>false</urlRewriting>
<autoBuild>true</autoBuild>
<lineLength>-1</lineLength>
<autoTimestamps>false</autoTimestamps>
<removeLogs>false</removeLogs>
<oldFileNames>false</oldFileNames>
<dependencies>
<file>WebContent/ExtLib/core/modernizr.tdm.js</file>
<file>WebContent/ExtLib/core/jquery-1.8.3.js</file>
<file>WebContent/ExtLib/core/custom-tdm-jqm.js</file>
<file>WebContent/ExtLib/core/jquery.mobile-1.3.0.js</file>
<file>WebContent/ExtLib/template/knockout-2.2.1.js</file>
</dependencies>
<properties/>
</file>
</rockstarapps>