← Back to team overview

cairo-dock-team team mailing list archive

[Bug 1306557] [NEW] Fix border shape for rounded rectangle dock

 

Public bug reported:

Hello.
I'm currently using cairo-dock in cairo mode, since in gl mode look sometimes is coarse. There are two problems:
1. When only top corners are rounded, in 3d rect mode sides become tilted out of panel.
2. In cairo mode visible sides angle is independent of panel positioning, unlike icon separators. Only tilting angle is considered, and this makes look very inconsistent in some cases.

I guess, it is problem of drawing way. My proposal is to draw initially untilted, than only if selected view is some kind of 3d - deform it using cairo features. Initial drawing should include not only dock border and its filling, but all elements, affecting its form - such as icon separators. I guess, cairo has necessary 2d transformations to do it not worse than gl.
In addition - it would be better to place corners always in pixel's center at least in quiet mode (without animation), while in animation - without rounding (same is true for gl mode).
----
Yet, in gl mode - i found reason, why lines look coarse sometimes. Looks like feature of current way. Lines with any visible thickness are rectangles, and they are used to form arcs, what is very critical for rounded corners. They are enough good with opaque borders, but if transparent - look is horrible. My proposal is to consider lines are areas, which should be filled.

I propose this way:
1. Draw outer shape, for which only outer border is defined (no need for hole for panel itself).
2. Draw inner shape above.
- both shapes are opaque.
3. Create second drawing in same way, but for alpha channel, than apply it.

I understand it is complicated, but i's for higher quality. Optionally
there could be user option to switch between fast (current) and proposed
careful way.

** Affects: cairo-dock-core
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/1306557

Title:
  Fix border shape for rounded rectangle dock

Status in Cairo-Dock : Core:
  New

Bug description:
  Hello.
  I'm currently using cairo-dock in cairo mode, since in gl mode look sometimes is coarse. There are two problems:
  1. When only top corners are rounded, in 3d rect mode sides become tilted out of panel.
  2. In cairo mode visible sides angle is independent of panel positioning, unlike icon separators. Only tilting angle is considered, and this makes look very inconsistent in some cases.

  I guess, it is problem of drawing way. My proposal is to draw initially untilted, than only if selected view is some kind of 3d - deform it using cairo features. Initial drawing should include not only dock border and its filling, but all elements, affecting its form - such as icon separators. I guess, cairo has necessary 2d transformations to do it not worse than gl.
  In addition - it would be better to place corners always in pixel's center at least in quiet mode (without animation), while in animation - without rounding (same is true for gl mode).
  ----
  Yet, in gl mode - i found reason, why lines look coarse sometimes. Looks like feature of current way. Lines with any visible thickness are rectangles, and they are used to form arcs, what is very critical for rounded corners. They are enough good with opaque borders, but if transparent - look is horrible. My proposal is to consider lines are areas, which should be filled.

  I propose this way:
  1. Draw outer shape, for which only outer border is defined (no need for hole for panel itself).
  2. Draw inner shape above.
  - both shapes are opaque.
  3. Create second drawing in same way, but for alpha channel, than apply it.

  I understand it is complicated, but i's for higher quality. Optionally
  there could be user option to switch between fast (current) and
  proposed careful way.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-core/+bug/1306557/+subscriptions


Follow ups

References