I'm writing a custom theme based on kkga's Spacegray theme, and I've run into an issue with the sidebar icons.
These are NOT the file icons feature, but the icons to denote if a folder is open/closed.
It looks like this:
However, when you hover over the rows, the highlighted row's icon renders just fine. Same image, and same path specification - so it's not an issue of the theme being unable to locate the file.
Can somebody more familiar with ST3 themes point me in the right direction to debug this issue?
ST3 Theme Docs can be found here: https://www.sublimetext.com/docs/3/themes.html
Ugh, I feel really silly. Turns out that the icons that were working, were cached versions (you can find the cache at /Cache/<package name> in the ST3 library folder).
I deleted the cache, reloaded the app and found that all the icons were not rendering. Realized that I had moved the whole package into the nested User directory recently, and as a result the texture paths were no longer correct.
Posting this for posterity. Mods, feel free to close this question.
Related
So I just downloaded the open-source QtCreator and I hoped to set the Dracula theme for this IDE, but I failed to do so, and I have no clue what I'm doing wrong.
So far, every where I looked for third party themes, they've been telling me to put it in a map on location "$HOME.config\QtProject\qtcreator\styles" (windows). Fine, but after I've copied the file into that folder, the theme is not showing up in the theme list when I'm trying to set a new theme in QtCreator, selecting Tools > Options > Text Editor > Theme-button :/
I'm quite (90%) sure the path/location is correct, but I assume the themes have moved to somewhere else. I would like to set-up this theme, instead of the default dark-theme. Thanks in advance!
So I found out the themes were located in PathToQt\Qt\Tools\QtCreator\share\qtcreator\styles. The developpers must have changed moved the theme folder, but now between the other .xml files, the Dracula.xml file works just fine.
I hope I fixed every one else's problem, who came to ask himself where the heck they had to put that theme.
my English level is limited, it may be difficult to read, please understand.
I use the NSSidebarTemplate icon in the ToolbarItem control of the project. But every time you open the Xcode, will be lost, there is no way to use NSSidebarTemplate. The missing results are shown in the picture. Open the project will have a pop-up box prompts, probably meaning
The document "Main.storyboard" had an internal inconsistency that was
found and repaired.
I have no way to use this NSSidebarTemplate, but most of the other icons do not have such a problem, such as NSActionTemplate is normal
It comes from a template project from Apple. The image name is NSSidebarTemplate. You can see it by digging into the storyboard or xib xml:
<buttonCell key="cell" type="roundTextured" bezelStyle="texturedRounded" image="NSSidebarTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zzz-zzz-zzz">
There might have been a change in Xcode that made the image name displayed as 'Unknown' at some point, though internally it's still there.
This is also discussed here: The Sidebar Icon image name in OSX
I am looking for these little document icons (not only for Python) inside of TextMate 2.
I looked in the Bundles folder of TextMate, but I couldn't find them. I really would like to use these icons as document icons in Finder.
Does anybody knows where they are located?
Fabian
https://github.com/textmate/textmate/blob/master/Frameworks/OakAppKit/icons/python.icns is the source of this icon.
Other icons are below, uncovered in the search.
TextMate.app/Contents/Resources/ is where textmate store's it's icons (version 1.5 and 2 both use the same folder).
/usr/local/Cellar/python/2.7.10_2/Python Launcher.app/Contents/Resources/PythonSource.icns is where some other Python icons come from. Note: your version is unlikely to match my version, so replace 2.7.10_2 with the version available on your system.
I copied and pasted the Three.js code given here into an HTML file and downloaded the three.js package from the website, and configured the <script> tag to point to the location of the file three.min.js.
Nonetheless, when I open the HTML file, it displays a blank white screen.
What am I missing?
well I tryed the exact same thing and I'm seeing the wireframe cube rotating on screen. A few things to try.
1) drop the three.min.js right in the root folder and copy/paste the example code again without any alterations.
2) did you get the three.min.js from the zip package under the build directory? Or did you navigate the git repo and copy/paste it? If copy/paste was used be sure to click the "Raw" button to get the code without the wrapper HTML.
3) try the latest Firefox or Chrome browsers first. If it works there but not in say Safari, there are a few steps you need to take to enable WebGL in Safari first.
4) your video card may be blacklisted due to driver incompatibilities.
If none of these help, then post up the code, where you got the Three.js package, what browser and video card your using and I'll see what else I can do to help :)
I had the same problem. Windows hides the file extensions by default. I change it in folder options and it worked.
I have almost 20 images in PNG format added to my current project on Xcode (under the proper group, Resources). Unfortunately, library window's Media tab doesn't show some of them. And if I create an UIImageView and set one of these invisible images from code, nothing shows up. I also tried from IB with adding a UIImageView and set its source image.
Is this problem a image format related issue or is there a tiny detail I'm missing.
What log says:
Could not load the "07_clock_icon.png" image referenced from a nib in the bundle
The solution to this is a bit silly, but it definitely works:
Close XCode and the Interface Builder. Now, instead of opening XCode then opening the project, navigate to the project in Finder and double click on the project. When you open your xib file the blue file not found images will flash up, then be replaced with the correct images and the dropdown will show all your images in the Inspector.
Heyy! I figured it out. It's a refreshing bug. So just copy and replace those images that did not load into your project folder, and then hold Shift Command K (to clean your project). After Clean Up it should work perfectly! Enjoy!
If you dragged the images from the Finder into the Resources folder in XCode the images should show up in IB as well. At least it does so in my setup.
Maybe the images are 8-bit PNG images. I believe Cocoa requires them to be 24-bit because of the alpha transparency. PNG 8-bit doesn't support the alpha channel, as it's more like a GIF image.
But from the error you posted It seems IB couldn't find the resource at all. Which is understandable if it doesn't load the resources from XCode in its library.
Assuming you selected the option to let XCode copy the files into your project and neither XCode nor the Finder complain when you make the copy... I wonder if there might be some file corruption? Maybe try recreating them or opening and resaving them from another graphics application (or even Preview.app).
btw- 8-bit PNGs have worked fine for me.
Same problem was encountered by me. The problem is with the image. The image has been some how corrupted.Try to open the image in photoshop and you will see it doesn't open with photoshop.
I solved the problem by changing the image format to PNG-24 and everything works fine for me.
Hope this will solve your issue.
Regards,
Rupesh R Menon