Rename two configuration properties in order to avoid confusion.

cusax-fix
Yana Stamcheva 17 years ago
parent a11acf25df
commit f8ce41bb2f

@ -36,11 +36,11 @@ impl.gui.MAIN_WINDOW_BORDER_SIZE=0
impl.gui.CONTACT_LIST_TRANSPARENCY=200 impl.gui.CONTACT_LIST_TRANSPARENCY=200
impl.gui.IS_TRANSPARENT_WINDOW_ENABLED=false impl.gui.IS_TRANSPARENT_WINDOW_ENABLED=false
impl.gui.WINDOW_TRANSPARENCY=180 impl.gui.WINDOW_TRANSPARENCY=180
impl.gui.IS_CONTACT_LIST_IMG_BG_ENABLED=false
impl.gui.IS_CONTACT_LIST_TEXTURE_BG_ENABLED=false
impl.gui.IS_WINDOW_DECORATED=true impl.gui.IS_WINDOW_DECORATED=true
impl.gui.IS_WINDOW_BACKGROUND_ENABLED=false
impl.gui.IS_WINDOW_COLOR_BACKGROUND_ENABLED=true impl.gui.IS_WINDOW_COLOR_BACKGROUND_ENABLED=true
impl.gui.IS_WINDOW_IMAGE_BACKGROUND_ENABLED=false impl.gui.IS_WINDOW_IMAGE_BACKGROUND_ENABLED=false
impl.gui.IS_TEXTURE_BACKGROUND=false
impl.gui.GREY_HISTORY_ENABLED=false impl.gui.GREY_HISTORY_ENABLED=false
# impl.msghistory # impl.msghistory

@ -18,8 +18,8 @@
/** /**
* The SCScrollPane is a JScrollPane with a custom viewport that allows to * The SCScrollPane is a JScrollPane with a custom viewport that allows to
* set an image as a background. Depending on the * set an image as a background. Depending on the
* "impl.gui.IS_TEXTURE_BACKGROUND" property we'll be setting a single image or * "impl.gui.IS_CONTACT_LIST_TEXTURE_BG_ENABLED" property we'll be setting a
* a texture of images. * single image or a texture of images.
* *
* @author Yana Stamcheva * @author Yana Stamcheva
*/ */
@ -66,12 +66,13 @@ public SCViewport()
{ {
this.setBackground(Color.WHITE); this.setBackground(Color.WHITE);
if (getSettingsBoolean("impl.gui.IS_WINDOW_BACKGROUND_ENABLED")) if (getSettingsBoolean("impl.gui.IS_CONTACT_LIST_IMG_BG_ENABLED"))
{ {
bgImage = bgImage =
ImageLoader.getImage(ImageLoader.MAIN_WINDOW_BACKGROUND); ImageLoader.getImage(ImageLoader.MAIN_WINDOW_BACKGROUND);
if (getSettingsBoolean("impl.gui.IS_TEXTURE_BACKGROUND") if (getSettingsBoolean(
"impl.gui.IS_CONTACT_LIST_TEXTURE_BG_ENABLED")
&& (bgImage != null)) && (bgImage != null))
{ {
texture = texture =

@ -340,7 +340,7 @@ public void paintComponent(Graphics g)
Graphics2D g2 = (Graphics2D) g; Graphics2D g2 = (Graphics2D) g;
boolean isTextureBackground = Boolean.parseBoolean(GuiActivator.getResources() boolean isTextureBackground = Boolean.parseBoolean(GuiActivator.getResources()
.getSettingsString("impl.gui.IS_TEXTURE_BACKGROUND")); .getSettingsString("impl.gui.IS_CONTACT_LIST_TEXTURE_BG_ENABLED"));
BufferedImage bgImage BufferedImage bgImage
= ImageLoader.getImage(ImageLoader.MAIN_WINDOW_BACKGROUND); = ImageLoader.getImage(ImageLoader.MAIN_WINDOW_BACKGROUND);

Loading…
Cancel
Save