diff options
author | DUI-Team Symbio <dui-team@fi.symbio.com> | 2010-03-19 09:04:34 +0200 |
---|---|---|
committer | DUI-Team Symbio <dui-team@fi.symbio.com> | 2010-03-19 09:04:34 +0200 |
commit | 6133a7d86a4d3d25e6e05aa57161c6b2851e76e5 (patch) | |
tree | 43eede029071a515d6fa1e113540169ade107d00 | |
parent | 8e62756d42416073ed2b6400cbe992ed15b37a43 (diff) |
Changes: Modified styling of the videocontainer page.
RevBy: TrustMe
-rw-r--r-- | demos/widgetsgallery/theme/base/style/widgetsgallery.css | 38 | ||||
-rw-r--r-- | demos/widgetsgallery/videocontainerpage.cpp | 3 |
2 files changed, 41 insertions, 0 deletions
diff --git a/demos/widgetsgallery/theme/base/style/widgetsgallery.css b/demos/widgetsgallery/theme/base/style/widgetsgallery.css index 0c07d37e..9c0fc666 100644 --- a/demos/widgetsgallery/theme/base/style/widgetsgallery.css +++ b/demos/widgetsgallery/theme/base/style/widgetsgallery.css @@ -131,3 +131,41 @@ DuiButtonStyle#theme-selection-button { rail-dot-not-loaded-image: "Dot-empty"; rail-dot-played-image: "Slider-dot-selected"; } + +DuiSliderStyle#video-player-slider { + padding-left: 0; + padding-top: 0; + padding-right: 0; + padding-bottom: 0; + + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; +} + +DuiButtonStyle#video-player-button { + + padding-left: 0; + padding-top: 0; + padding-right: 0; + padding-bottom: 0; + + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + + text-margin-left: 0; + text-margin-top: 0; + text-margin-right: 0; + text-margin-bottom: 0; + + preferred-size: 7.5mm 5mm; + minimum-size: 7.5mm 5mm; + maximum-size: 7.5mm 5mm; + + + icon-size: 3.5mm 3.5mm; + icon-align: center; +} diff --git a/demos/widgetsgallery/videocontainerpage.cpp b/demos/widgetsgallery/videocontainerpage.cpp index fb9ce65c..8cdf3dd7 100644 --- a/demos/widgetsgallery/videocontainerpage.cpp +++ b/demos/widgetsgallery/videocontainerpage.cpp @@ -201,13 +201,16 @@ void ItemDetailPage::createContent() controlLayout->setContentsMargins(0,0,0,0); button = new DuiButton(panel); //button->setViewType(DuiButton::iconType); + button->setObjectName("video-player-button"); button->setIconID("icon-m-common-pause"); button->setIconVisible(true); button->setTextVisible(false); connect(button, SIGNAL(clicked(bool)), this, SLOT(buttonClicked())); controlLayout->addItem(button); + controlLayout->setAlignment(button, Qt::AlignCenter); slider = new DuiSlider(panel); + slider->setObjectName("video-player-slider"); connect(slider, SIGNAL(valueChanged(int)), this, SLOT(videoSliderValueChanged(int))); connect(slider, SIGNAL(sliderPressed()), this, SLOT(sliderPressed())); connect(slider, SIGNAL(sliderReleased()), this, SLOT(sliderReleased())); |