Version 7 (modified by deyan, 16 years ago) (diff) |
---|
Analysis
Overview
The user should be able to change the opacity of a frame.
- The default frame opacity is 100.
- All frames elements should be drawn according to the common opacity.
- A tree structure can visualize the problem
Frame opacity - Frame border opacity - Frame filling opacity - Frame content opacity
Each of these has own opacity. The slider for the frame however should move the sliders of the sub-elements. This means that the opacity should be kept for each element, even if it has no value. When some of the sub-opacities reachs 0 or 100, it remains there until the parent slider is moved again in + or - direction.
Task requirements
- Implement opacity for a whole frame (for this revision - frame border and filling)
- Optional - Implement opacity for the content
- Add a slider bar in the frame appearance hud for controlling the whole HUD opacity. For now, this should control the whole frame opacity, but later this should control other sliders.
Task result
The result of this task is source code.
Implementation idea
Add a slider bar to the frame appearance hud which values could change from 0 to 100% and a label showing what is the chosen opacity. When creating the scene elements in the frame view multiply all elements color opacity with the frame common opacity.
Related
How to demo
- Demonstrate how a frame becomes lighter when the opacity is closer to 0.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)