← Back to team overview

dx-packages team mailing list archive

[Bug 1296866] [NEW] Allow .unity-panel.menuitem to paint window title text for maximized window in new Unity Decorator(Trusty)

 

Public bug reported:

Some themes (Greybird, Elementary) use dark-panel & light window title-
bar (When it is not maximized). As new Unity window decorator uses same
title-bar foreground color for both normal & maximized windows, window
title on unity-panel is not properly visible as it becomes dark-text on
dark-panel. I have attached a screenshot.

This forces theme developer to use use same background color for both
unity-panel & un-maximized windows, which breaks theme design. The idea
is that theme-developers like to think unity-panel as a panel & not just
a title-bar for maximized window.

According to https://wiki.ubuntu.com/Unity/Theming, color set in
UnityDecoration.top is used for both unmaximized & maximized window.

UnityDecoration.top {
 color: @dark_fg_color
}

And when this is set, the color set in .unity-panel.menuitem is ignored
for window title text in panel (it still paints some other text in panel
like indicator-datetime)

.unity-panel .menuitem {
    border-width: 0 1px;
    color: @panel_fg_color;     # this does not affect window title text anymore. 
}

This color (OR unity.panel foreground color in UnityPanelWidget) should
be used to paint the window tile text for maximized window, as it used
to be in old compiz-decorator.

** Affects: unity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: trusty

** Attachment added: "Screenshot (Greybird)"
   https://bugs.launchpad.net/bugs/1296866/+attachment/4041213/+files/Dark-text-ondark-panel.png

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1296866

Title:
  Allow .unity-panel.menuitem to paint window title text for maximized
  window in new Unity Decorator(Trusty)

Status in “unity” package in Ubuntu:
  New

Bug description:
  Some themes (Greybird, Elementary) use dark-panel & light window
  title-bar (When it is not maximized). As new Unity window decorator
  uses same title-bar foreground color for both normal & maximized
  windows, window title on unity-panel is not properly visible as it
  becomes dark-text on dark-panel. I have attached a screenshot.

  This forces theme developer to use use same background color for both
  unity-panel & un-maximized windows, which breaks theme design. The
  idea is that theme-developers like to think unity-panel as a panel &
  not just a title-bar for maximized window.

  According to https://wiki.ubuntu.com/Unity/Theming, color set in
  UnityDecoration.top is used for both unmaximized & maximized window.

  UnityDecoration.top {
   color: @dark_fg_color
  }

  And when this is set, the color set in .unity-panel.menuitem is
  ignored for window title text in panel (it still paints some other
  text in panel like indicator-datetime)

  .unity-panel .menuitem {
      border-width: 0 1px;
      color: @panel_fg_color;     # this does not affect window title text anymore. 
  }

  This color (OR unity.panel foreground color in UnityPanelWidget)
  should be used to paint the window tile text for maximized window, as
  it used to be in old compiz-decorator.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1296866/+subscriptions


Follow ups

References