I have been looking at the new Bootstrap theme from Wiggleware, which goes well beyond any other Orchard Theme I have seen. There is quite a bit of code associated with this theme but I have not been able to figure out how this is compiled. There is no Themes\bin directory and no Themes.dll that I can find anywhere. So where does the code end up?
I ask because I need to do something similar but whenever I try to set up a theme the same way it only works under the debugger and won't deploy correctly (namespace name missing).
This is a stupid question that arises only because I didn't understand how Orchard Themes are laid out in VS. For the sake of anyone else making this mistake, please note that there are two types of Orchard theme:
'Ordinary' themes live under the 'Themes' Theme and so appear in the Solution Explorer under Themes/Themes. These themes do not have their own project and just share the 'Themes' project.
'Project' themes have their own project and in the Solution Explorer they appear as Themes/MyNewTheme. These themes compile just like a module.
Hope that helps
Related
I'd like to be able to display an image below a class-level javadoc in Android Studio. My assumption is that I should write a plugin to make this happen.
Does anyone know what I need to do to get an image (JPEG or PNG) to display below a class-level javadoc comment in a Java class file?
I looked into basic information about creating an IntelliJ IDEA plugin but I have no idea where to look to accomplish my task.
This is not possible in the current version of IntelliJ IDEA. The editor can display only text, and does not support embedding of non-text things such as an image file.
You can display images on hover, or in popups, or in dialogs, but not within the editor itself.
Do you want the image to show in the class' source code itself? As an aside, images in Javadocs will show when you view the formatted javadoc view the Quick documentation action (Windows/Linux: Ctrl+Q or Mac: ^J)
If you still want the image to show in the source code, then yes, you will need to write a plug-in. You can look at the Information for Plugin Developers
Setting Up the Plugin Development Environment section of this web page - https://www.jetbrains.com/idea/plugins - to get started. You'll have to dig through source code to try and find some ideas for how to display an image in the source code. As much as I love IntelliJ IDEA, there plug-in documentation is a bit weak. When I wrote a plug-in, I had to do a lot of looking through the IDEA code to find code that was doing things similar to what I wanted to do. I also downloaded the source code for some of the better plug-ins out there and looked through them.
Finally, you can ask for some guidance in the IntelliJ IDEA Open API and Plugin Development forum. That forum is monitored by JetBrains developers. Your best bet to getting answers in that forum is to ask very specific questions. Do not try and get someone to explain from start to finish what you need to do. As you do each step, ask questions about what you are trying to do.
I'm a noob in Android studio and Java, I do have a solid c# background, but I can't seem to fix this problem:
Some of my partners asked to add a button to a previous android build created by someone else, so I downloaded Android studio and imported the project, but I can't seem to find anything in there. We can't contact the creater of the project to ask in what he developed the app.
As you can see, there's no layout in the project.
And this is what the project folder looks like:
Where Can I edit layouts? Am I in the wrong IDE?
Thanks
If you want to change the Layout, you can do Two things:
OPTION 1
1. Simply click into your Xml file and select the "Text" option at the bottom on your screen
2.Change to layout
OPTION 2
1.Just drag another layout in Design and put your items in it, delete your old layout PS. you can have layouts in other layouts
Now, Thats just for the Layouts, to see classes just do...
after double clicking that, itl bring up a new tab.
PS This is somewhat a Duplicate, try to search up your question first instead of making a new question
link to duplicate: Android Studio - How to change layout
I have downloaded the VS2012 Theme editor but would now like to to find more themes for it. Specifically, I am after .vstheme files, but haven't been able to find any. I'm hoping to get a nice dark theme that works with the theme editor. I am not interested in settings files as used in VS2010. I write in C++ if that is relevant.
I found this site to be pretty good with a great mix of themes.
One with actual *.vstheme extension: http://studiostyl.es/schemes/c-dark-scheme-for-use-with-expression-dark-theme
I can't seem to figure out how to change the menu color or add a background to the menu bar in Gantry 4 for Joomla. Tired of the gray or dark gray default.
I could change the font and selection through the .less file but not the menu itself.
The documentation on the Gantry website is too general.
Thank You in advance.
Also check: menu-light.less & menu-dark.less in the less\ directory.
The folks at RocketTheme don't recommend editing the compiled CSS (but it works great as #Adriana pointed out).
Hi Gantry framework for joomla as you probably notice uses Less to really understand how to change things on the template you first have to learn how less works even that Gantry compiles the less files for you. Less it is fantastic so it worth it. Basically you use a code to define css in a clever way much more economic and then you compile this into more efficient css files
If you change the compiled files as our friends are saying here make not sense at all because as soon you compile again (and you will) this files will be override and all your work lose.
I will give you the direction and you will see that it is not that difficult as look.
1- check the menu you had selected on your Gantry template under Templates Manager - Style - menu style.
2- on your less folder you will see a less file for each of the menu styles with the main variables
for example menu-dark.less try to make sense of the variables and the colors and change them to see what is what.
3- on the same folder you have menu.less and there is where the magic is done using the variables from the previous file. You will see that for example define first level of menu you will have something like:
&.l1 {
> li.active {
background: #menuActiveBack;
So that menuActiveBack variable will be the background value of the active li of the level 1.
4- the last part will be the menu-hovers.less that i thinks it is over complicate things because it is not a need to have a different file to do the hovers but there it is.
You can control CSS compression, Compile Wait Time and Debug Header, as well as manually clear the cache with the Clear Cache button at Extensions → Template Manager → gantry → Advanced → Less Compiler.
more info at: ganty less documentation
Hope it helps to start with....
Happy coding,
Eduardo
it took me a while maybe half an hour to go through the "menu" css file in the "css-compiled" folder.
You can find all the css to alter the background and colors of Gantry's default menu.. I'm using Gantry v4 also.
Go here:
Joomla>templates>gantry>css-compiled>menu-675c76.....
Please view my image to see my results:
http://dream2unite.com/images/misc/GANTRY-MENU-675c76.png
Use FireBug or similar to find the default CSS styling.
Create a file /templates/gantry/css/gantry-custom.css and add your own CSS to override the default CSS.
This is a better method than editing compiled or other template less or css files which can be overwritten during compilation or when the template is updated.
New to Orchard in that I just started to play around with it in the past few days. My question is about customising a theme (in this instance the Bootstrap one that can be installed from the gallery)
I tried to have a look and see if there was a non-source code way of doing it but was unable to find this way of doing it so I went spelunking through the theme folder and edited the Layout.cshtml file myself. Is this 'wrong' or is there another 'supported' way of doing it?
What I specifically wanted to do was to have the logo to the left and the menu to the right (see here for the OOB behaviour) and this was the way that I achieved it.
I'm sure if there are any updates to this theme then the customisations will be overwritten hence the question about a supported way to achieve this.
What you may want to do is look up Derived themes, you should create a new theme based off the theme you're modifying, then you can just modify the parts you want, and if the original theme needs updates or w/e you can update it without overwritting all your changes. I'm pretty sure this is the way you should be doing it.
This page should describe how that is done
http://docs.orchardproject.net/Documentation/Customizing-the-default-theme
This is how themes are customized.