Changes in skin do not apply - video.js

I changed a few parameters in the video-js.less file (center the big button) but the changes do not show up in the HTML page (button is still above left). I tried theses changes before in the skin designer, and they worked fine. I suppose I still do not understand the logic behind player.js skins. Isn't video-js.less the players's default skin? If it isn't, how do I connect it to the player's tag in the HTML page? A short code example would help.

After editing the .less file in the designer, you need to copy the resulting CSS and include it in the same html page as the player. If you're editing the .less file outside of the designer, you still need to convert it to CSS, and you can just copy and paste it into the designer to do that.
You also should make sure you've got the latest and the same version of both the less file and the video.js library.

Related

Photoshop to unity

Hello I made a spritesheet in photoshop. The process to make the spritesheet was fairly easy. The issue is when importing to Unity I get a white background and I don't know how to remove the white background from my spreadsheet in unity. I have taken the following steps to resolve this issue
First unchecked the background in photoshop.
Second I tried to remove background from each individual image in photoshop.
But no luck can someone help.
You can select the asset and change its type to Sprites, instead of Default (in the Inspector); if you've already done that, how about trying .png files?
In one of the updates to Unity of last year, they removed the option to use the image transparancy as alpha when using .psd files. The option was a checkbox in the import setting of the image, which is no longer shown.
You can however use an import preset with a preset that still has this option set.
What you can do is:
Create a preset when in the texture-importer panel. How to make a preset? What is the texture-import panel?
Open the file which was created (e.g. myimporter.preset). You could use a file explorer in your project and search for the name
Then set these values to 1:
propertyPath: m_PSDRemoveMatte
propertyPath: m_PSDShowRemoveMatteOption
Apply this preset to all your psd files inside unity.
Now, importing a .psd file should work fine with transparancies.
Note: Unity's intent was for users to import .png files when dealing with transparancies. But I found it annoying to manually re-import all my .png files when i made changes to the .psd file.

IntelliJ/PyCharm - where do I change what happens when I double click a file?

I want PyCharm (IntelliJ) to display HTML-files in a browser, not open them in an editor, when I double click them in the project browser. Googling for a solution didn't return anything useful. Is this possible? How?
(This request also applies to PNG and some other filetypes but HTML is my main need at the moment)
Both IDEA and PyCharm are editors, and they will default to editing; that is, they will open the HTML file and allow you to edit it instead of displaying any kind of web page.
If you want to see the rendered HTML, you can hover to the top right corner and select one of the browsers recognized by IntelliJ and installed on your system to open it in a browser then. Be aware that this may not render things correctly if you rely on a language-specific functionality (like JSP, Jinja2 templates or Less) to generate code on your behalf.

Is there a way to isolate the view of code-regions in IntelliJ?

I have some static HTML and want to generate templates out of it. Looking through the HTML tags I often find myself adding the tags I don't want to have in my templates because I went too far down in the hierarchy. Is there a way to kind of isolate the view of a marked code area? Like greying all unmarked code out somehow?
I'm still not 100% sure what you mean by "mark". I'm assuming you mean "select", that is highlight with the cursor, like this:
If that is the case... here is some info.
There is no way to "highlight" the selected portion and work with it, nor a way "dither out" the non selected portion as you go on to work with the desired portion. You could, however, make use of scratch files to work on the desired text. (Scratch files at IntelliJ IDEA help documentation)
With the portion you want to modify selected, if you create a new scratch file (Ctrl+Alt+Shift+Insert / ⇧⇧N or Tools > New Scratch File), the selected portion will be copied into a scratch file:
You could then work in that scratch file, then copy and paste the final result back into the original file (the changes you make in the scratch file are not "linked" to the original file).
Because you have a portion selected when you launch the scratch file, IDEA creates a scratch file of the same type (HTML in this case) as the selected content. (If done without selected text, a popup is shown asking the type of scratch file you want to create.) If you want JSP syntax awareness, in the HTML scratch file, open the context menu (i.e. right click) and select "Change Language" and select JSP from the menu (inline search is available, so you can just start typing JSP).

Styling a xul scrollbar

XUL makes when loading a scrollbar in the richlistbox. I want to style this scrollbar, I've tried everything but nothing helps.
Can anyone help me?
In order to make CSS style changes to portions of an XUL element you need to assign the CSS to the underlying elements when they are contained within the primary element. In order to determine what elements are within which (i.e. what elements make up a <scrollbar>). You will probably end up using a combination of the DOM Inspector, examining the .xml file which define them, and the CSS used to style them. The files which define the XUL elements are .xml binding files. These, and the .css files for their styles, are normally contained within the omni.ja files that are within the Firefox install directory tree. omni.ja files are just regular .zip files which have been renamed with a different extension. You can copy such a file and rename it to omni.zip to get convenient access.
Specifically for scrollbars, these appear to be scrollbar.xml and scrollbars.css which are located in the main omni.ja. You may also want to look at the floating-scrollbars-light.css or floating-scrollbars.css files in the browser/omni.ja file.
However, you want the scrollbar inside <richlistbox>. To find out how to style those scrollbars, you need to find what makes up a <richlistbox>;. That file is richlistbox.xml (styled in richlistbox.css) in the main omni.ja. In that file it appears the scrollbar is implemented by a <scrollbox> element which is defined in scrollbox.xml (styled in scrollbox.css), also in the main omni.ja. The element(s) you want to style may be contained within several layers of other elements. You will need to keep digging and experimenting to find the right CSS selector for the element(s) you want to style.
You may already be using the <richlistbox> in your own XUL window, but you might also be just adding one somewhere to the browser (You did not say). For experimenting, in addition to the development setup, I would suggest a separate XUL window, which specifies a separate .css file, which you can open easily by clicking a button. This could just be the options dialog. Using a separate XUL window for experimenting allows you to have a separate CSS file called by just that window. When such is the case, the .xul file for that window (and the .js and .css files called only from that .xul) are re-read each time it the window is opened. Doing this makes testing changes possible with just closing and re-opening the window rather than having to re-start Firefox. If it is a completely separate widow, rather than the options dialog, you can open multiple copies of the window and do side-by-side comparisons between changes.
As an example, the following CSS colors the background of the actual text area within <menulist> and <textbox> elements when the mouse hovers over them:
menulist hbox :hover {
background-color: Azure !important;
}
textbox>hbox :hover {
background-color: Azure !important;
}

Editing Flexslider HTML

I'm still new to coding. I downloaded flex slider, and I have it running fine on my site and working fine. However I can't make ANY edits into my html regarding the slider. It has the 'next' and 'previous' image links on my gallery, which I would like to replace. It shows up in the html when I inspect it in firebug, yet when I run my html through my text editor (Im using text mate), it doesn't show up at all!
Any ideas why?
I think you are talking about the navigational arrows on the left and right side of the images. This can be changes in the "flexslider.css" file. If you are using textmate then the line number is 52.
Probably the easiest way is to find the image here images/bg_direction_nav.png. Right click the image and open with your image editing software eg. photoshop. Then once you have change the image just save it and it will be saved in the same folder location. If you keep the image the same size then you will not have to mess around with anything else..