Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a378f1a7
Commit
a378f1a7
authored
Jun 04, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cosmetics for plastique
parent
8e2036e4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
11 deletions
+22
-11
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+1
-5
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-2
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-3
modules/gui/qt4/util/qvlcframe.hpp
modules/gui/qt4/util/qvlcframe.hpp
+18
-1
No files found.
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
a378f1a7
...
@@ -42,11 +42,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -42,11 +42,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setWindowTitle
(
_
(
"Preferences"
)
);
setWindowTitle
(
_
(
"Preferences"
)
);
resize
(
800
,
450
);
resize
(
800
,
450
);
QPalette
plt
(
palette
()
);
advanced_tree
=
NULL
;
plt
.
setColor
(
QPalette
::
Active
,
QPalette
::
Highlight
,
Qt
::
gray
);
setPalette
(
plt
);
advanced_tree
=
NULL
;
simple_tree
=
NULL
;
simple_tree
=
NULL
;
simple_panel
=
NULL
;
simple_panel
=
NULL
;
advanced_panel
=
NULL
;
advanced_panel
=
NULL
;
...
...
modules/gui/qt4/main_interface.cpp
View file @
a378f1a7
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
#include <assert.h>
#include <assert.h>
#include <QPushButton>
#include <QPushButton>
MainInterface
::
MainInterface
(
intf_thread_t
*
_p_intf
)
:
MainInterface
::
MainInterface
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
QWidget
(
NULL
),
p_intf
(
_p_intf
)
{
{
/* Init UI */
/* Init UI */
slider
=
new
InputSlider
(
Qt
::
Horizontal
,
this
);
slider
=
new
InputSlider
(
Qt
::
Horizontal
,
this
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
a378f1a7
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
#define _MAIN_INTERFACE_H_
#define _MAIN_INTERFACE_H_
#include <vlc/intf.h>
#include <vlc/intf.h>
#include
<QWidget>
#include
"util/qvlcframe.hpp"
class
InputManager
;
class
InputManager
;
class
QCloseEvent
;
class
QCloseEvent
;
class
InputSlider
;
class
InputSlider
;
class
MainInterface
:
public
Q
Widget
class
MainInterface
:
public
Q
VLCFrame
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
...
@@ -42,7 +42,6 @@ protected:
...
@@ -42,7 +42,6 @@ protected:
private:
private:
InputManager
*
main_input_manager
;
InputManager
*
main_input_manager
;
InputSlider
*
slider
;
InputSlider
*
slider
;
intf_thread_t
*
p_intf
;
/// Main input associated to the playlist
/// Main input associated to the playlist
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
private
slots
:
private
slots
:
...
...
modules/gui/qt4/util/qvlcframe.hpp
View file @
a378f1a7
...
@@ -24,13 +24,30 @@
...
@@ -24,13 +24,30 @@
#define _QVLCFRAME_H_
#define _QVLCFRAME_H_
#include <QWidget>
#include <QWidget>
#include <QApplication>
#include <QPlastiqueStyle>
#include <vlc/vlc.h>
#include <vlc/vlc.h>
class
QVLCFrame
:
public
QWidget
class
QVLCFrame
:
public
QWidget
{
{
public:
public:
QVLCFrame
(
intf_thread_t
*
_p_intf
)
:
QWidget
(
NULL
),
p_intf
(
_p_intf
)
QVLCFrame
(
intf_thread_t
*
_p_intf
)
:
QWidget
(
NULL
),
p_intf
(
_p_intf
)
{};
{
QStyle
*
style
=
qApp
->
style
();
// Plastique is too dark.
/// theming ? getting KDE data ? ?
if
(
qobject_cast
<
QPlastiqueStyle
*>
(
style
)
)
{
QPalette
plt
(
palette
()
);
plt
.
setColor
(
QPalette
::
Active
,
QPalette
::
Highlight
,
Qt
::
gray
);
QColor
vlg
=
(
Qt
::
lightGray
);
vlg
=
vlg
.
toHsv
();
vlg
.
setHsv
(
vlg
.
hue
(),
vlg
.
saturation
(),
235
);
plt
.
setColor
(
QPalette
::
Active
,
QPalette
::
Window
,
vlg
);
plt
.
setColor
(
QPalette
::
Inactive
,
QPalette
::
Window
,
vlg
);
setPalette
(
plt
);
}
};
virtual
~
QVLCFrame
()
{};
virtual
~
QVLCFrame
()
{};
void
toggleVisible
()
void
toggleVisible
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment