EzDevInfo.com

themes interview questions

Top themes frequently asked interview questions

Tap outside Android dialog to dismiss it?

I was wondering if it's possible to somehow tap outside a popup dialog (or an Activity with a dialog theme), and dismiss it by just tapping outside of it?

I made a quick picture to illustrate it:

enter image description here

Normally, you have to press the back key to dismiss the dialogs, but on Honeycomb it could be great to have the option of just tapping outside the dialog, due to all the screen estate.


Source: (StackOverflow)

How to create Multiple Themes/Skins for iphone apps? [closed]

I have an iphone app ready and approved by the app store. Now I want to create different themes for my app. Can someone please help me out, with info/links/steps on how to create themes for my app?

I want to create a Metal theme for the Boys and a Pink theme for the Girls. Again by theme I mean, the whole app(features and functionality) is gonna stay the same, but depending on who the user is(boy or girl), he/she can choose the theme they wish to see. And when the theme changes, only the images/Background/music will change according to the applied theme.

Thanks a lot!


Source: (StackOverflow)

Advertisements

Any free WPF themes? [closed]

I'm not a designer, so I'm looking for some free WPF themes.

Any suggestions?


Source: (StackOverflow)

How to change or add theme to Android Studio?

I have just installed Android Studio in my Window 7 64bit.
When I launch the application the background of the screen where we write the code is white.
I would prefer black or any other color.
I am not sure whether we can change the color/theme OR add more themes.


Source: (StackOverflow)

How can I switch themes in Visual Studio 2012

The Visual Studio 2012 offers two themes, Light and Dark. I want to switch the theme to Dark, but I'm not able to find any menus or options to do that.

I found out a way importing settings from:

Microsoft Visual Studio 11.0\Common7\IDE\ FontsAndColorsThemes\1ded0138-47ce-435e-84ef-9ec1f439b749.vssettings

and the code editor is now in Dark theme but other windows are still in Light theme such as the Solution Explorer, Toolbox, and Toolbars.

What should I do to switch themes?


Source: (StackOverflow)

Eclipse Luna dark theme, code editor white

I downloaded the new Eclipse Luna (ver. 4.4) and changed to Dark Theme, but the code editor is not changing. See the screen-shot:

enter image description here

I tried this on MAC, Windows and Linux, always the same result.


Source: (StackOverflow)

How can I change Eclipse theme?

I want to change Eclipse theme like this Eclipse Dark Theme:

eclipse dark theme

I try to do all step in this page but eclipse theme not changed (but eclipse editor changed).
I want to change all part of eclipse IDE change to black color, not only eclipse's editor.


Source: (StackOverflow)

Metro theme for website

Anyone know of an easy way to style a website with a windows phone 7 like metro theme ?
Either a CSS or a jQuery-based theme would work.


Source: (StackOverflow)

Dark Theme for Visual Studio 2010 With Productivity Power Tools

There's a lot of new things going on in the Productivity Power Tools extensions, and I find that many of the new features come with very weird color combinations, that many times make the text completely illegible. I assume this is because I've previously set a dark theme for Visual Studio, and some, but not all, of the settings that affect the extension have been changed.

Are there any good dark themes out there that have been put together after the Productivity Tools Extension was published, that create a unified color theme for both VS and the extension features?

Clarification: This question is not about color schemes for code, such as those found at studiostyles. I'm talking about color schemes that apply to the development environment itself; toolboxes, menus, tooltips, windows, buttons...


Source: (StackOverflow)

Revert to Eclipse default settings

I know there is the option in Eclipse to 'restore defaults'.

The problem is I had imported a .epf to change my editors font/colors.

I'm not a big fan of the changes and would like to go back. I've tried deleting the eclipse folder and downloading a fresh copy, but the styles persist.

I assume there is a config file somewhere that I could possibly delete.

Anyway, if you could help me out here I would appreciate it. I've looked for solutions but they all seem to point to the same answer that doesn't work for me.


Source: (StackOverflow)

What is so special about Generic.xaml?

I've been trying to figure out how to organize my ResourceDictionary files for reuse and sharing with other members of my team.

I keep coming across "Generic.xaml", but if I look on MSDN for Generic.xaml or just do a Google search, I only seem to get blog posts and forum questions that happen to mention it--I can't seem to hit upon anything really authoritative and clear.

What is the difference between Generic.xaml and MyRandomlyNamedResourceDictionary.xaml? It seems like either way, I have to reference ResourceDictionaries stored in libraries with the Source attribute. E.g.,:

<Application.Resources>
    <ResourceDictionary
        Source="/CommonLibraryWpfThemes;component/Themes/Generic.xaml"
</Application.Resources>

So what advantage does Generic.xaml provide exactly? Does it have any purpose if I'm not trying to give my application multiple "looks" (i.e., if I have only one theme)?


Source: (StackOverflow)

How to change theme for AlertDialog

I was wondering if someone could help me out. I am trying to create a custom AlertDialog. In order to do this, I added the following line of code in styles.xml

@drawable/color_panel_background

  • color_panel_background.9.png is located in drawable folder. This is also available in Android SDK res folder.

The following is the main activity.

package com.customdialog;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;

public class CustomDialog extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        this.setTheme(R.style.CustomAlertDialog);
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setMessage("HELLO!");
        builder .setCancelable(false)
          .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface dialog, int id) {
               //MyActivity.this.finish();
           }
       })
       .setNegativeButton("No", new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface dialog, int id) {
               //dialog.cancel();
           }
       });

        AlertDialog alertdialog = builder.create();
        alertdialog.show();
    }
}

In order to apply the theme to an AlertDialog, I had to set the theme to the current context.

However, I just can't seem to get the app to show customized AlertDialog. Can anyone help me out with this, and thank you very much in advance!


Source: (StackOverflow)

Eclipse IDE for Java - Full Dark Theme

Is there any way to completely turn Eclipse to a dark IDE? Here's a Picture of what I'm asking:

I don't mind doing 1 hour of work to do something like this :D

EDIT:

As Konstantin Komissarchik said, I had to modify my OS colors. This is possible by adding a custom Visual Style to the Windows. With the aid of a Custom Theme and a Custom Visual Style for Windows 7 (Which I have changed a little bit), my Eclipse looks like the picture below: Screenshot of my Eclipse


Source: (StackOverflow)

How to treat my custom emacs theme as a "safe theme"?

I'm new to Emacs.

So, I'm using emacs 24 and solarized color theme.

When Emacs starts up, it prompt me with "Loading a theme can run Lisp code, really load?".

When I answer with "yes", it continues to "Treat this theme as safe in future sessions?".

If I say "y", the theme gets loaded, and

(custom-set-variables
    (custome-safe-themes (quote ("..." default))))

gets added to ~/.emacs automatically.

However, those questions come back every time I open Emacs!

What's the proper way to turn those off?


Source: (StackOverflow)

Finding all available styles defined by android platform themes

In several android styling tutorials parent style elements are used that i can not find in the android.R.style.* styles (http://developer.android.com/reference/android/R.style.html).

A few examples are from the http://android-developers.blogspot.com/2011/04/customizing-action-bar.html action bar article. Nick uses parent styles like:

<style name="MyDropDownNav" parent="android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar">
...
</style>

or

<style name="MyActionBarTabStyle" parent="android:style/Widget.Holo.Light.ActionBarView_TabView">
...
</style>

Where do these parent styles come from? Is it possible to list all available parent styles?

Thanks.


Source: (StackOverflow)