Skip to content

Commit

Permalink
Adjust control sizes in appearance prefs pane
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Mar 25, 2011
1 parent 20b252b commit aafd0af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -1,5 +1,6 @@
package org.rstudio.studio.client.workbench.prefs.views;

import com.google.gwt.dom.client.SelectElement;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
Expand Down Expand Up @@ -52,6 +53,8 @@ public void onChange(ChangeEvent event)
preview_.setTheme(themes.getThemeUrl(theme_.getValue()));
}
});
theme_.getListBox().getElement().<SelectElement>cast().setSize(
themes.getThemeNames().length);
theme_.addStyleName(res.styles().themeChooser());
leftPanel.add(theme_);
theme_.setValue(themes.getEffectiveThemeName(uiPrefs_.theme().getValue()));
Expand All @@ -60,7 +63,7 @@ public void onChange(ChangeEvent event)
previewPanel.setSize("100%", "100%");
previewPanel.add(new Label("Preview"));
preview_ = new AceEditorPreview(CODE_SAMPLE);
preview_.setHeight("300px");
preview_.setHeight("375px");
preview_.setWidth("288px");
preview_.setTheme(themes.getThemeUrl(uiPrefs_.theme().getValue()));
preview_.setFontSize(Size.valueOf(fontSize_.getValue()));
Expand Down
Expand Up @@ -78,5 +78,4 @@

.themeChooser select {
width: 138px;
height: 200px;
}

0 comments on commit aafd0af

Please sign in to comment.