Commit Graph

1212 Commits

Author SHA1 Message Date
Thilo Graf
b6185ea78d CComponentsItem: remove frame witdth from boxrad calculation
This fix possible artefacts on the bottom right corner with frame
2016-10-24 10:31:25 +02:00
Thilo Graf
a17d61de8c Shadow: try to optimize shadow areas
* cleanup inner part of box on round corners, frames considered
* adopt implementations in some gui classes
* some debug lines removed
* test menu adopted
* try to fix corner caluculation to avoid transparent holes
2016-10-24 10:31:25 +02:00
Thilo Graf
929b5da892 CComponetnsItem: try to assign shadow areas
TODO: possible crashes on some constellations
2016-10-24 10:31:25 +02:00
Thilo Graf
147246cead cc_types.h: add compatible types shadow types
CC_SHADOW_ON is should compatible
2016-10-24 10:31:25 +02:00
Thilo Graf
363cf101d1 CComponentsFooter: add member enableButtonShadow()
Possibility to pass button properties into button objects
2016-10-24 10:31:25 +02:00
Thilo Graf
779c51bd00 CComponentsFooter: reduced button height for better optical view into footer 2016-10-24 10:31:25 +02:00
Thilo Graf
3477e28cd7 CComponentsItem: fix changeing color on select switching of frames
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.
2016-10-24 10:31:25 +02:00
Thilo Graf
307b2763bd shadow: paint shadow layer with multiple renderboxes
Should help to paint a clean shadow frame
2016-10-24 10:31:24 +02:00
Thilo Graf
be740c1552 CMsgBox: add option to enable/disable button background
replaces var name btn_contour for better plausibility
2016-10-24 10:31:24 +02:00
Thilo Graf
fc2eb68edc CCDraw: try to fix possible data race 2016-10-24 10:31:24 +02:00
Thilo Graf
dde298b1b7 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details
2016-10-24 10:31:24 +02:00
Stefan Seyfried
13ab1ebc8a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
svenhoefer
e8e237df40 - cc_item_infobox: user OFFSET defines; fix width of textbox 2016-10-13 19:03:38 +02:00
Thilo Graf
1e388d848c CComponentsText: add missing member to get current font 2016-10-13 09:39:35 +02:00
Thilo Graf
422f5872e4 CComponentsScrollBar: disable scrollbar color gradient
Was for testing only, now usual properties used.
2016-10-12 10:08:18 +02:00
Thilo Graf
7b334f8883 CComponentsScrollBar: fix trasnparent background arrow icons
parameter was disabled
2016-10-12 09:42:46 +02:00
svenhoefer
104d21e784 - rename customcolor.h -> color_custom.h; reduce unneeded inludes 2016-10-10 14:19:55 +02:00
svenhoefer
26e0926586 - cc_frm_button: use same framecolor as used in messagebox/msgbox 2016-10-10 14:19:55 +02:00
svenhoefer
98500fdeb6 - add and use OFFSET_INTER definition 2016-10-10 14:19:55 +02:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
vanhofen
be40e67b70 - colors: add COL_PROGRESSBAR wrapper 2016-10-10 14:19:55 +02:00
vanhofen
01f32241e4 - ccomponents: fix frame color 2016-10-10 14:19:55 +02:00
vanhofen
6629b64d6c - colors: add COL_SCROLLBAR_PASSIVE wrapper 2016-10-10 14:19:54 +02:00
vanhofen
7e7d4e5fc1 - colors: add COL_SCROLLBAR_ACTIVE wrapper 2016-10-10 14:19:54 +02:00
svenhoefer
e8c77b6b7f - ccomponents: just code cosmetics; formatting 2016-10-10 14:19:54 +02:00
svenhoefer
75fe6e407d - colors: add COL_FRAME wrapper 2016-10-10 14:19:54 +02:00
Thilo Graf
f90440e0f1 CComponentsWindow: remove wrong corner assignment
Overwrites corner mode for already assigned corner type for body object and
previous statement is canceled. This should avoid this.
2016-10-07 14:25:59 +02:00
Thilo Graf
ac58c8c016 CComponentsExtTextForm: add methode to get current font
Default font is generated by class it self, so it is useful
to have access to current font if is required by implemenations.
2016-10-03 01:45:14 +02:00
Thilo Graf
80753c75d1 CComponentsExtTextForm: add missed parameter font_text 2016-10-03 01:45:09 +02:00
Thilo Graf
a4b2e25bf2 CComponentsItem: prevent reinit of already initialized parent form 2016-09-29 10:19:37 +02:00
Thilo Graf
f68fd5ac19 CSignalBox: add missing member to set frontend
Remove double init of sig items; Will be done already by paintScale().
Ensure reset of last sig value on fe change.
Prevent possible segfault if fe is not defined.
2016-09-28 21:12:32 +02:00
svenhoefer
59ac9e57e1 Revert "CSignalBox: Set current tuner as the default frontend"
This reverts commit c83f195637.

Conflicts:
	src/gui/components/cc_frm_signalbars.h
2016-09-28 21:12:32 +02:00
Thilo Graf
7c4e1c20b8 CComponentsButton: use passed shadow parameter
Shadow was always enabled.
2016-09-24 01:09:46 +02:00
Thilo Graf
b205b0c8d0 CComponentsHeader: ensure clean object on reinit
Items were destroyed with simple call of delete
but not removed from item collection.
removeCCItem() does this and destroys item objects too.
2016-09-24 01:09:41 +02:00
Thilo Graf
3af698701b CComponentsFooter: remove defined font from footer
cch_font has nothing to do with button font and is already
inherited and defined from header class and can be redefined with
setCaptionFont() methode if required.
2016-09-24 01:08:08 +02:00
Thilo Graf
1caa54d6ab CCDraw: add member to get current shadow width 2016-09-13 09:09:27 +02:00
Thilo Graf
2de3a167e5 CComponentsFooter: rename var for btn icon
is more plausible
2016-09-13 09:04:53 +02:00
svenhoefer
9948649f55 - cc_detailsline: fix positions/dimensions of detailsline 2016-09-12 12:10:19 +02:00
Thilo Graf
731cb9c66d CComponentsHeader: don't use default parameters for privat member
Unified adaptation related to child class ComponentsFooter.
see: 9b9a8d1a78
2016-08-30 11:19:48 +02:00
Thilo Graf
9b9a8d1a78 CComponentsFooter: don't use default parameters for privat member
Passed init values are better to see here.
This should fix wrong footer color too. See UPNP-Browser, color was not
applied here.
2016-08-23 16:00:48 +02:00
Thilo Graf
90866b232a CComponentsWindow: fix possible holes between frame and footer
One line was to much
2016-08-22 21:17:02 +02:00
Thilo Graf
2cf409bc27 CComponentsButton: reduce shadow width
buttons are mostly small elements, so these elements should have a reasonable shadow width
2016-08-22 21:16:54 +02:00
Thilo Graf
ca5702acf4 CComponentsWindow: simplify statements 2016-08-22 21:16:50 +02:00
Thilo Graf
a92757697f CComponentsFooter: use background color of footer inside chain object
Ensure pass of bg color from parent into chain object and button objects.
Required by embedded button objects. This prevents "holes" on screen.
2016-08-22 21:15:28 +02:00
Jacek Jendrzej
912017621b src/gui/components/cc_frm_window.cpp dont paint over screen size 2016-08-20 16:20:16 +02:00
svenhoefer
1f60557e0b - ccomponents: use COL_SHADOW for shadows 2016-08-16 08:37:54 +02:00
svenhoefer
c35414bc56 - cc_item_text: avoid using INFOBAR_SMALL font; use MENU_INFO instead
it's a small font too
2016-08-15 19:32:46 +02:00
svenhoefer
54f2ac510f - fonts: add and use own font for all footers 2016-08-15 19:02:42 +02:00
svenhoefer
29c7d652ec - cc_frm_button: respecting user colors in buttons 2016-08-15 12:31:28 +02:00
svenhoefer
cc5258e6d5 - colors: make footer background color configurable
TODO: footer text color and maybe footer font
2016-08-15 00:14:47 +02:00