Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f2683556
Kaydet (Commit)
f2683556
authored
Haz 12, 2012
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
toolbars: Improve the toolbars look in Windows Vista or later.
Change-Id: I389ef70c76a3a9c837ad5406c417804ad77be948
üst
eac708b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
17 deletions
+56
-17
svdata.hxx
vcl/inc/svdata.hxx
+1
-0
dockingarea.cxx
vcl/source/window/dockingarea.cxx
+19
-16
salnativewidgets-luna.cxx
vcl/win/source/gdi/salnativewidgets-luna.cxx
+36
-1
No files found.
vcl/inc/svdata.hxx
Dosyayı görüntüle @
f2683556
...
@@ -308,6 +308,7 @@ struct ImplSVNWFData
...
@@ -308,6 +308,7 @@ struct ImplSVNWFData
bool
mbMenuBarDockingAreaCommonBG
:
1
;
// e.g. WinXP default theme
bool
mbMenuBarDockingAreaCommonBG
:
1
;
// e.g. WinXP default theme
bool
mbDockingAreaSeparateTB
:
1
;
// individual toolbar backgrounds
bool
mbDockingAreaSeparateTB
:
1
;
// individual toolbar backgrounds
// instead of one for docking area
// instead of one for docking area
bool
mbDockingAreaAvoidTBFrames
:
1
;
//< don't draw frames around the individual toolbars if mbDockingAreaSeparateTB is false
bool
mbToolboxDropDownSeparate
:
1
;
// two adjacent buttons for
bool
mbToolboxDropDownSeparate
:
1
;
// two adjacent buttons for
// toolbox dropdown buttons
// toolbox dropdown buttons
bool
mbFlatMenu
:
1
;
// no popup 3D border
bool
mbFlatMenu
:
1
;
// no popup 3D border
...
...
vcl/source/window/dockingarea.cxx
Dosyayı görüntüle @
f2683556
...
@@ -171,24 +171,27 @@ void DockingAreaWindow::Paint( const Rectangle& )
...
@@ -171,24 +171,27 @@ void DockingAreaWindow::Paint( const Rectangle& )
DrawNativeControl
(
CTRL_TOOLBAR
,
IsHorizontal
()
?
PART_DRAW_BACKGROUND_HORZ
:
PART_DRAW_BACKGROUND_VERT
,
DrawNativeControl
(
CTRL_TOOLBAR
,
IsHorizontal
()
?
PART_DRAW_BACKGROUND_HORZ
:
PART_DRAW_BACKGROUND_VERT
,
aCtrlRegion
,
nState
,
aControlValue
,
rtl
::
OUString
()
);
aCtrlRegion
,
nState
,
aControlValue
,
rtl
::
OUString
()
);
// each toolbar gets a thin border to better recognize its borders on the homogeneous docking area
if
(
!
ImplGetSVData
()
->
maNWFData
.
mbDockingAreaAvoidTBFrames
)
sal_uInt16
nChildren
=
GetChildCount
();
for
(
sal_uInt16
n
=
0
;
n
<
nChildren
;
n
++
)
{
{
Window
*
pChild
=
GetChild
(
n
);
// each toolbar gets a thin border to better recognize its borders on the homogeneous docking area
if
(
pChild
->
IsVisible
()
)
sal_uInt16
nChildren
=
GetChildCount
();
for
(
sal_uInt16
n
=
0
;
n
<
nChildren
;
n
++
)
{
{
Point
aPos
=
pChild
->
GetPosPixel
();
Window
*
pChild
=
GetChild
(
n
);
Size
aSize
=
pChild
->
GetSizePixel
();
if
(
pChild
->
IsVisible
()
)
Rectangle
aRect
(
aPos
,
aSize
);
{
Point
aPos
=
pChild
->
GetPosPixel
();
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
()
);
Size
aSize
=
pChild
->
GetSizePixel
();
DrawLine
(
aRect
.
TopLeft
(),
aRect
.
TopRight
()
);
Rectangle
aRect
(
aPos
,
aSize
);
DrawLine
(
aRect
.
TopLeft
(),
aRect
.
BottomLeft
()
);
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
()
);
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetSeparatorColor
()
);
DrawLine
(
aRect
.
TopLeft
(),
aRect
.
TopRight
()
);
DrawLine
(
aRect
.
BottomLeft
(),
aRect
.
BottomRight
()
);
DrawLine
(
aRect
.
TopLeft
(),
aRect
.
BottomLeft
()
);
DrawLine
(
aRect
.
TopRight
(),
aRect
.
BottomRight
()
);
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetSeparatorColor
()
);
DrawLine
(
aRect
.
BottomLeft
(),
aRect
.
BottomRight
()
);
DrawLine
(
aRect
.
TopRight
(),
aRect
.
BottomRight
()
);
}
}
}
}
}
}
}
...
...
vcl/win/source/gdi/salnativewidgets-luna.cxx
Dosyayı görüntüle @
f2683556
...
@@ -1007,7 +1007,39 @@ sal_Bool ImplDrawNativeControl( HWND hWnd, HDC hDC, HTHEME hTheme, RECT rc,
...
@@ -1007,7 +1007,39 @@ sal_Bool ImplDrawNativeControl( HWND hWnd, HDC hDC, HTHEME hTheme, RECT rc,
{
{
const
ToolbarValue
*
pValue
=
static_cast
<
const
ToolbarValue
*>
(
&
aValue
);
const
ToolbarValue
*
pValue
=
static_cast
<
const
ToolbarValue
*>
(
&
aValue
);
if
(
pValue
->
mbIsTopDockingArea
)
if
(
pValue
->
mbIsTopDockingArea
)
rc
.
top
=
0
;
// extend potential gradient to cover menu bar as well
{
// make it more compatible with Aero
if
(
ImplGetSVData
()
->
maNWFData
.
mbTransparentMenubar
)
{
const
long
GRADIENT_HEIGHT
=
32
;
long
gradient_break
=
rc
.
top
;
GRADIENT_RECT
g_rect
[
1
]
=
{
{
0
,
1
}
};
// very slow gradient at the top (if we have space for that)
if
(
rc
.
bottom
-
rc
.
top
>
GRADIENT_HEIGHT
)
{
gradient_break
=
rc
.
bottom
-
GRADIENT_HEIGHT
;
TRIVERTEX
vert
[
2
]
=
{
{
rc
.
left
,
rc
.
top
,
0xff00
,
0xff00
,
0xff00
,
0xff00
},
{
rc
.
right
,
gradient_break
,
0xfa00
,
0xfa00
,
0xfa00
,
0xff00
},
};
GradientFill
(
hDC
,
vert
,
2
,
g_rect
,
1
,
GRADIENT_FILL_RECT_V
);
}
// gradient at the bottom
TRIVERTEX
vert
[
2
]
=
{
{
rc
.
left
,
gradient_break
,
0xfa00
,
0xfa00
,
0xfa00
,
0xff00
},
{
rc
.
right
,
rc
.
bottom
,
0xe500
,
0xe900
,
0xee00
,
0xff00
}
};
GradientFill
(
hDC
,
vert
,
2
,
g_rect
,
1
,
GRADIENT_FILL_RECT_V
);
return
sal_True
;
}
else
rc
.
top
=
0
;
// extend potential gradient to cover menu bar as well
}
}
}
return
ImplDrawTheme
(
hTheme
,
hDC
,
iPart
,
iState
,
rc
,
aCaption
);
return
ImplDrawTheme
(
hTheme
,
hDC
,
iPart
,
iState
,
rc
,
aCaption
);
}
}
...
@@ -1566,6 +1598,9 @@ void WinSalGraphics::updateSettingsNative( AllSettings& rSettings )
...
@@ -1566,6 +1598,9 @@ void WinSalGraphics::updateSettingsNative( AllSettings& rSettings )
pSVData
->
maNWFData
.
mnMenuFormatBorderY
=
2
;
pSVData
->
maNWFData
.
mnMenuFormatBorderY
=
2
;
pSVData
->
maNWFData
.
maMenuBarHighlightTextColor
=
aStyleSettings
.
GetMenuTextColor
();
pSVData
->
maNWFData
.
maMenuBarHighlightTextColor
=
aStyleSettings
.
GetMenuTextColor
();
GetSalData
()
->
mbThemeMenuSupport
=
TRUE
;
GetSalData
()
->
mbThemeMenuSupport
=
TRUE
;
// don't draw frame around each and every toolbar
pSVData
->
maNWFData
.
mbDockingAreaAvoidTBFrames
=
true
;
}
}
rSettings
.
SetStyleSettings
(
aStyleSettings
);
rSettings
.
SetStyleSettings
(
aStyleSettings
);
...
...
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