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
1cf7e272
Kaydet (Commit)
1cf7e272
authored
Haz 30, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#90452: Templates should adhere to the recent docs colors too.
Change-Id: I5df89581796eca4e48e0a305d4319e4674f8dd87
üst
7387cdbc
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
24 deletions
+42
-24
thumbnailview.hxx
include/sfx2/thumbnailview.hxx
+5
-4
thumbnailviewitem.hxx
include/sfx2/thumbnailviewitem.hxx
+1
-0
recentdocsview.cxx
sfx2/source/control/recentdocsview.cxx
+1
-0
templateabstractview.cxx
sfx2/source/control/templateabstractview.cxx
+1
-1
templatecontaineritem.cxx
sfx2/source/control/templatecontaineritem.cxx
+4
-8
templatedefaultview.cxx
sfx2/source/control/templatedefaultview.cxx
+21
-0
templateviewitem.cxx
sfx2/source/control/templateviewitem.cxx
+2
-6
thumbnailview.cxx
sfx2/source/control/thumbnailview.cxx
+6
-0
thumbnailviewitem.cxx
sfx2/source/control/thumbnailviewitem.cxx
+1
-5
No files found.
include/sfx2/thumbnailview.hxx
Dosyayı görüntüle @
1cf7e272
...
@@ -324,10 +324,11 @@ protected:
...
@@ -324,10 +324,11 @@ protected:
bool
mbIsTransientChildrenDisabled
:
1
;
bool
mbIsTransientChildrenDisabled
:
1
;
bool
mbHasVisibleItems
:
1
;
bool
mbHasVisibleItems
:
1
;
bool
mbShowTooltips
:
1
;
bool
mbShowTooltips
:
1
;
Color
maFillColor
;
Color
maFillColor
;
///< Background color of the thumbnail view widget.
Color
maTextColor
;
Color
maTextColor
;
///< Text color.
Color
maHighlightColor
;
Color
maHighlightColor
;
///< Color of the highlight (background) of the hovered / selected item.
Color
maHighlightTextColor
;
Color
maHighlightTextColor
;
///< Color of the text for the higlighted item.
double
mfHighlightTransparence
;
///< Transparence of the highlight.
Link
<>
maItemStateHdl
;
Link
<>
maItemStateHdl
;
ThumbnailItemAttributes
*
mpItemAttrs
;
ThumbnailItemAttributes
*
mpItemAttrs
;
...
...
include/sfx2/thumbnailviewitem.hxx
Dosyayı görüntüle @
1cf7e272
...
@@ -60,6 +60,7 @@ struct ThumbnailItemAttributes
...
@@ -60,6 +60,7 @@ struct ThumbnailItemAttributes
basegfx
::
BColor
aTextColor
;
basegfx
::
BColor
aTextColor
;
basegfx
::
BColor
aHighlightColor
;
basegfx
::
BColor
aHighlightColor
;
basegfx
::
BColor
aHighlightTextColor
;
basegfx
::
BColor
aHighlightTextColor
;
double
fHighlightTransparence
;
basegfx
::
B2DVector
aFontSize
;
basegfx
::
B2DVector
aFontSize
;
drawinglayer
::
attribute
::
FontAttribute
aFontAttr
;
drawinglayer
::
attribute
::
FontAttribute
aFontAttr
;
};
};
...
...
sfx2/source/control/recentdocsview.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -74,6 +74,7 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent )
...
@@ -74,6 +74,7 @@ RecentDocsView::RecentDocsView( vcl::Window* pParent )
maTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsTextColor
::
get
());
maTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsTextColor
::
get
());
maHighlightColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightColor
::
get
());
maHighlightColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightColor
::
get
());
maHighlightTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightTextColor
::
get
());
maHighlightTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightTextColor
::
get
());
mfHighlightTransparence
=
0.25
;
}
}
VCL_BUILDER_FACTORY
(
RecentDocsView
)
VCL_BUILDER_FACTORY
(
RecentDocsView
)
...
...
sfx2/source/control/templateabstractview.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -312,7 +312,7 @@ void TemplateAbstractView::Paint(vcl::RenderContext& rRenderContext, const Recta
...
@@ -312,7 +312,7 @@ void TemplateAbstractView::Paint(vcl::RenderContext& rRenderContext, const Recta
drawinglayer
::
primitive2d
::
Primitive2DSequence
aSeq
(
1
);
drawinglayer
::
primitive2d
::
Primitive2DSequence
aSeq
(
1
);
aSeq
[
0
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
aSeq
[
0
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonColorPrimitive2D
(
B2DPolyPolygon
(
Polygon
(
aRect
).
getB2DPolygon
()),
new
PolyPolygonColorPrimitive2D
(
B2DPolyPolygon
(
Polygon
(
aRect
).
getB2DPolygon
()),
BColor
(
1.0
,
1.0
,
1.0
)));
maFillColor
.
getBColor
(
)));
const
drawinglayer
::
geometry
::
ViewInformation2D
aNewViewInfos
;
const
drawinglayer
::
geometry
::
ViewInformation2D
aNewViewInfos
;
std
::
unique_ptr
<
drawinglayer
::
processor2d
::
BaseProcessor2D
>
mpProcessor
(
std
::
unique_ptr
<
drawinglayer
::
processor2d
::
BaseProcessor2D
>
mpProcessor
(
...
...
sfx2/source/control/templatecontaineritem.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include <sfx2/templateviewitem.hxx>
#include <sfx2/templateviewitem.hxx>
#include <vcl/button.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
#include <vcl/graph.hxx>
#include <svtools/optionsdrawinglayer.hxx>
using
namespace
basegfx
;
using
namespace
basegfx
;
using
namespace
basegfx
::
tools
;
using
namespace
basegfx
::
tools
;
...
@@ -75,10 +74,7 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
...
@@ -75,10 +74,7 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
aFillColor
=
pAttrs
->
aHighlightColor
;
aFillColor
=
pAttrs
->
aHighlightColor
;
if
(
mbHover
)
if
(
mbHover
)
{
fTransparence
=
pAttrs
->
fHighlightTransparence
;
const
SvtOptionsDrawinglayer
aSvtOptionsDrawinglayer
;
fTransparence
=
aSvtOptionsDrawinglayer
.
GetTransparentSelectionPercent
()
*
0.01
;
}
aSeq
[
nCount
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
aSeq
[
nCount
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
B2DPolyPolygon
(
Polygon
(
maDrawArea
,
5
,
5
).
getB2DPolygon
()),
B2DPolyPolygon
(
Polygon
(
maDrawArea
,
5
,
5
).
getB2DPolygon
()),
...
@@ -88,9 +84,9 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
...
@@ -88,9 +84,9 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
true
));
true
));
// Create rounded rectangle border
// Create rounded rectangle border
aSeq
[
nCount
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolygonStrokePrimitive2D
(
aSeq
[
nCount
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolygonStrokePrimitive2D
(
Polygon
(
maThumbnailArea
,
5
,
5
).
getB2DPolygon
(),
Polygon
(
maThumbnailArea
,
5
,
5
).
getB2DPolygon
(),
LineAttribute
(
BColor
(
0.
8
,
0.8
,
0.8
),
2.0
)));
LineAttribute
(
BColor
(
0.
5
,
0.5
,
0.5
),
2.0
)));
// Paint the thumbnails side by side on a 2x2 grid
// Paint the thumbnails side by side on a 2x2 grid
long
nThumbPadding
=
4
;
long
nThumbPadding
=
4
;
...
...
sfx2/source/control/templatedefaultview.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
#include <vcl/builderfactory.hxx>
#include <vcl/builderfactory.hxx>
#include <sfx2/app.hxx>
#include <sfx2/app.hxx>
#include <officecfg/Office/Common.hxx>
VCL_BUILDER_FACTORY
(
TemplateDefaultView
)
VCL_BUILDER_FACTORY
(
TemplateDefaultView
)
TemplateDefaultView
::
TemplateDefaultView
(
Window
*
pParent
)
TemplateDefaultView
::
TemplateDefaultView
(
Window
*
pParent
)
...
@@ -23,6 +25,25 @@ TemplateDefaultView::TemplateDefaultView( Window* pParent)
...
@@ -23,6 +25,25 @@ TemplateDefaultView::TemplateDefaultView( Window* pParent)
Rectangle
aScreen
=
Application
::
GetScreenPosSizePixel
(
Application
::
GetDisplayBuiltInScreen
());
Rectangle
aScreen
=
Application
::
GetScreenPosSizePixel
(
Application
::
GetDisplayBuiltInScreen
());
mnItemMaxSize
=
std
::
min
(
aScreen
.
GetWidth
(),
aScreen
.
GetHeight
())
>
800
?
256
:
192
;
mnItemMaxSize
=
std
::
min
(
aScreen
.
GetWidth
(),
aScreen
.
GetHeight
())
>
800
?
256
:
192
;
ThumbnailView
::
setItemDimensions
(
mnItemMaxSize
,
mnItemMaxSize
,
mnTextHeight
,
mnItemPadding
);
ThumbnailView
::
setItemDimensions
(
mnItemMaxSize
,
mnItemMaxSize
,
mnTextHeight
,
mnItemPadding
);
// startcenter specific settings
maFillColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsBackgroundColor
::
get
());
maTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsTextColor
::
get
());
maHighlightColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightColor
::
get
());
maHighlightTextColor
=
Color
(
officecfg
::
Office
::
Common
::
Help
::
StartCenter
::
StartCenterThumbnailsHighlightTextColor
::
get
());
mfHighlightTransparence
=
0.25
;
maAllButton
->
SetControlForeground
(
maTextColor
);
maFTName
->
SetControlForeground
(
maTextColor
);
// TODO - convert the TemplateAbstractView to .ui (instead of fixed layout
// of the button and the fixed text), and do the following:
// const float fMultiplier = 1.4;
// vcl::Font aFont(maAllButton->GetSettings().GetStyleSettings().GetPushButtonFont());
// aFont.SetSize(Size(0, aFont.GetSize().Height() * fMultiplier));
// maAllButton->SetControlFont(aFont);
// maFTName->SetControlFont(aFont);
}
}
void
TemplateDefaultView
::
reload
()
void
TemplateDefaultView
::
reload
()
...
...
sfx2/source/control/templateviewitem.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <vcl/button.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
#include <vcl/graph.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#define SUBTITLE_SCALE_FACTOR 0.85
#define SUBTITLE_SCALE_FACTOR 0.85
...
@@ -77,11 +76,8 @@ void TemplateViewItem::Paint(drawinglayer::processor2d::BaseProcessor2D *pProces
...
@@ -77,11 +76,8 @@ void TemplateViewItem::Paint(drawinglayer::processor2d::BaseProcessor2D *pProces
if
(
mbSelected
||
mbHover
)
if
(
mbSelected
||
mbHover
)
aFillColor
=
pAttrs
->
aHighlightColor
;
aFillColor
=
pAttrs
->
aHighlightColor
;
if
(
mbHover
)
if
(
mbHover
)
{
fTransparence
=
pAttrs
->
fHighlightTransparence
;
const
SvtOptionsDrawinglayer
aSvtOptionsDrawinglayer
;
fTransparence
=
aSvtOptionsDrawinglayer
.
GetTransparentSelectionPercent
()
*
0.01
;
}
aSeq
[
0
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
aSeq
[
0
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
B2DPolyPolygon
(
Polygon
(
maDrawArea
,
5
,
5
).
getB2DPolygon
()),
B2DPolyPolygon
(
Polygon
(
maDrawArea
,
5
,
5
).
getB2DPolygon
()),
...
...
sfx2/source/control/thumbnailview.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <drawinglayer/processor2d/processorfromoutputdevice.hxx>
#include <drawinglayer/processor2d/processorfromoutputdevice.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#include <vcl/decoview.hxx>
#include <vcl/decoview.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/scrbar.hxx>
...
@@ -151,6 +152,10 @@ void ThumbnailView::ImplInit()
...
@@ -151,6 +152,10 @@ void ThumbnailView::ImplInit()
maTextColor
=
GetSettings
().
GetStyleSettings
().
GetWindowTextColor
();
maTextColor
=
GetSettings
().
GetStyleSettings
().
GetWindowTextColor
();
maHighlightColor
=
GetSettings
().
GetStyleSettings
().
GetHighlightColor
();
maHighlightColor
=
GetSettings
().
GetStyleSettings
().
GetHighlightColor
();
maHighlightTextColor
=
GetSettings
().
GetStyleSettings
().
GetWindowTextColor
();
maHighlightTextColor
=
GetSettings
().
GetStyleSettings
().
GetWindowTextColor
();
const
SvtOptionsDrawinglayer
aSvtOptionsDrawinglayer
;
mfHighlightTransparence
=
aSvtOptionsDrawinglayer
.
GetTransparentSelectionPercent
()
*
0.01
;
mpStartSelRange
=
mFilteredItemList
.
end
();
mpStartSelRange
=
mFilteredItemList
.
end
();
ApplySettings
(
*
this
);
ApplySettings
(
*
this
);
...
@@ -203,6 +208,7 @@ void ThumbnailView::ApplySettings(vcl::RenderContext& rRenderContext)
...
@@ -203,6 +208,7 @@ void ThumbnailView::ApplySettings(vcl::RenderContext& rRenderContext)
mpItemAttrs
->
aTextColor
=
maTextColor
.
getBColor
();
mpItemAttrs
->
aTextColor
=
maTextColor
.
getBColor
();
mpItemAttrs
->
aHighlightColor
=
maHighlightColor
.
getBColor
();
mpItemAttrs
->
aHighlightColor
=
maHighlightColor
.
getBColor
();
mpItemAttrs
->
aHighlightTextColor
=
maHighlightTextColor
.
getBColor
();
mpItemAttrs
->
aHighlightTextColor
=
maHighlightTextColor
.
getBColor
();
mpItemAttrs
->
fHighlightTransparence
=
mfHighlightTransparence
;
mpItemAttrs
->
aFontAttr
=
getFontAttributeFromVclFont
(
mpItemAttrs
->
aFontSize
,
GetFont
(),
false
,
true
);
mpItemAttrs
->
aFontAttr
=
getFontAttributeFromVclFont
(
mpItemAttrs
->
aFontSize
,
GetFont
(),
false
,
true
);
mpItemAttrs
->
nMaxTextLength
=
0
;
mpItemAttrs
->
nMaxTextLength
=
0
;
}
}
...
...
sfx2/source/control/thumbnailviewitem.cxx
Dosyayı görüntüle @
1cf7e272
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include <vcl/graph.hxx>
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/texteng.hxx>
#include <vcl/texteng.hxx>
#include <svtools/optionsdrawinglayer.hxx>
using
namespace
basegfx
;
using
namespace
basegfx
;
using
namespace
basegfx
::
tools
;
using
namespace
basegfx
::
tools
;
...
@@ -277,10 +276,7 @@ void ThumbnailViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *pProc
...
@@ -277,10 +276,7 @@ void ThumbnailViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *pProc
aFillColor
=
pAttrs
->
aHighlightColor
;
aFillColor
=
pAttrs
->
aHighlightColor
;
if
(
mbHover
)
if
(
mbHover
)
{
fTransparence
=
pAttrs
->
fHighlightTransparence
;
const
SvtOptionsDrawinglayer
aSvtOptionsDrawinglayer
;
fTransparence
=
0.25
;
}
sal_uInt32
nPrimitive
=
0
;
sal_uInt32
nPrimitive
=
0
;
aSeq
[
nPrimitive
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
aSeq
[
nPrimitive
++
]
=
drawinglayer
::
primitive2d
::
Primitive2DReference
(
new
PolyPolygonSelectionPrimitive2D
(
...
...
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