Commit Graph

31 Commits

Author SHA1 Message Date
Thilo Graf
4b88a244da CComponentsFooter: use select/unselect colors from menues as default 2016-11-20 16:33:53 +01:00
Thilo Graf
7567f7de00 CComponentsFooter: use minimal frame width as default for buttons 2016-11-20 16:33:32 +01:00
Thilo Graf
696989dcf1 CComponentsFooter: add parameter for frame width for selected buttons
Frame width was hard coded.
2016-11-20 01:33:57 +01:00
Thilo Graf
55ac581523 CComponentsFooter: optimize select buttons, try to assign better contrast
Now it's possible to set parameters for frames and text.
Parameters are prdefined for better contrasts in select or default mode.

TODO: background modes have no effects at the moment. Here are other things need to be done.
2016-10-24 10:31:28 +02:00
Thilo Graf
2e631fd0ce Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed
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
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
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
svenhoefer
75fe6e407d - colors: add COL_FRAME wrapper 2016-10-10 14:19:54 +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
svenhoefer
1f60557e0b - ccomponents: use COL_SHADOW for shadows 2016-08-16 08:37:54 +02:00
svenhoefer
54f2ac510f - fonts: add and use own font for all footers 2016-08-15 19:02:42 +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
svenhoefer
13966c519b - cc_frm_footer: overload font option with old familiar font 2016-08-14 22:17:59 +02:00
svenhoefer
bc39d1e14e - colors: some internal renamings
* INFOBAR_SHADOW to SHADOW because it's not only used in infoviewer
* INFOBAR_SHADOW_TEXT to MENUFOOT_TEXT because it's the proper name

This is in preparation to make footer colors configurable
2016-08-14 21:55:18 +02:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
svenhoefer
5599784642 - cc_frm_footer: prepare for c2c gradient 2015-05-04 09:41:41 +02:00
Thilo Graf
56ea6c140f CComponentsFooter: Function setButtonLabels() change parameter
Performance: parameter 'v_content' should be passed by reference
2015-03-29 22:40:06 +02:00
Thilo Graf
7ec096fa3d CComponentsFooter: add optional possibility to switch colored button frame 2015-03-29 22:39:55 +02:00
Thilo Graf
5ae495716e CComponentsFooter: expand button label structs
Allows assigning of result, msg and alias values with label struct.

NOTE: Old button label struct are compatible but limited only and
not recommended for usage!
Old parameters 'struct button_label' doesn't provide newer parameters.
Missing parameters are filled with default values and must be assigned
afterward, if required.
2014-09-25 11:02:27 +04:00
Thilo Graf
cc5b17a620 CComponentsFooter: add members to set or get select a defined button 2014-09-25 11:01:49 +04:00
Thilo Graf
9f902af587 CComponentsFooter: add member to add button labels via vector 2014-09-25 11:01:39 +04:00
Thilo Graf
18f13b0062 CComponentsFooter: add member paintButtons()
This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.
2014-05-22 21:50:52 +02:00
Thilo Graf
7cbd4e3469 CComponentsFooter: add member to get pointer to button container 2014-05-22 21:50:48 +02:00
Thilo Graf
f7860fed35 CComponentsFooter: apply showButtonContour() after init of labels
Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.
2014-05-22 21:50:47 +02:00
Thilo Graf
bd03327cb4 CComponentsFooter: use chain object in global scope of class 2014-05-22 21:50:47 +02:00
Thilo Graf
9ffdb1cb98 CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain 2014-05-22 21:50:45 +02:00
Thilo Graf
41c01cedad CComponentsFooter: add possibility to change font type 2014-05-22 21:50:44 +02:00
Thilo Graf
8797872d47 CComponentsFooter: add functionality to add button labels via struct
This function uses struct label like old button label function
see /gui/widget/buttons.cpp, but can also use strings in structs

also possible: add single button with text or locale
2014-05-22 21:50:43 +02:00
Thilo Graf
23d7b62cf0 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.
2014-03-03 09:43:39 +01:00
Thilo Graf
7151608c8b CComponentsHeader/CComponentsFooter: move footer class into its own file 2014-02-05 11:56:46 +01:00