mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
gwenview: use the application palette as fullscreen palette
note that besides the config option there was no interface option to change it Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
96c709b614
commit
714bc7076d
5 changed files with 1 additions and 117 deletions
|
@ -48,7 +48,6 @@ endif()
|
||||||
add_subdirectory(icons)
|
add_subdirectory(icons)
|
||||||
add_subdirectory(images)
|
add_subdirectory(images)
|
||||||
add_subdirectory(cursors)
|
add_subdirectory(cursors)
|
||||||
add_subdirectory(color-schemes)
|
|
||||||
|
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||||
|
|
|
@ -120,20 +120,7 @@ struct GvCorePrivate
|
||||||
mPalettes[GvCore::NormalViewPalette] = pal;
|
mPalettes[GvCore::NormalViewPalette] = pal;
|
||||||
|
|
||||||
// Fullscreen
|
// Fullscreen
|
||||||
KSharedConfigPtr config;
|
mPalettes[GvCore::FullScreenPalette] = mPalettes[GvCore::NormalPalette];
|
||||||
QString name = GwenviewConfig::fullScreenColorScheme();
|
|
||||||
if (name.isEmpty()) {
|
|
||||||
// Default color scheme
|
|
||||||
QString path = KStandardDirs::locate("data", "gwenview/color-schemes/fullscreen.colors");
|
|
||||||
config = KSharedConfig::openConfig(path);
|
|
||||||
} else if (name.contains('/')) {
|
|
||||||
// Full path to a .colors file
|
|
||||||
config = KSharedConfig::openConfig(name);
|
|
||||||
} else {
|
|
||||||
// Standard KDE color scheme
|
|
||||||
config = KSharedConfig::openConfig(QString("color-schemes/%1.colors").arg(name), KConfig::FullConfig, "data");
|
|
||||||
}
|
|
||||||
mPalettes[GvCore::FullScreenPalette] = KGlobalSettings::createApplicationPalette(config);
|
|
||||||
|
|
||||||
pal = mPalettes[GvCore::FullScreenPalette];
|
pal = mPalettes[GvCore::FullScreenPalette];
|
||||||
QString path = KStandardDirs::locate("data", "gwenview/images/background.png");
|
QString path = KStandardDirs::locate("data", "gwenview/images/background.png");
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
install(
|
|
||||||
FILES fullscreen.colors
|
|
||||||
DESTINATION ${KDE4_DATA_INSTALL_DIR}/gwenview/color-schemes/
|
|
||||||
)
|
|
|
@ -1,95 +0,0 @@
|
||||||
[ColorEffects:Disabled]
|
|
||||||
ColorAmount=-0.8
|
|
||||||
ColorEffect=0
|
|
||||||
ContrastAmount=0.65
|
|
||||||
ContrastEffect=1
|
|
||||||
IntensityAmount=0.25
|
|
||||||
IntensityEffect=2
|
|
||||||
|
|
||||||
[ColorEffects:Inactive]
|
|
||||||
Color=0,0,0
|
|
||||||
ColorAmount=0.025
|
|
||||||
ColorEffect=2
|
|
||||||
ContrastAmount=0.4
|
|
||||||
ContrastEffect=2
|
|
||||||
IntensityAmount=0
|
|
||||||
IntensityEffect=0
|
|
||||||
|
|
||||||
[Colors:Button]
|
|
||||||
BackgroundAlternate=66,65,64
|
|
||||||
BackgroundNormal=64,63,62
|
|
||||||
DecorationFocus=39,94,160
|
|
||||||
DecorationHover=87,129,176
|
|
||||||
ForegroundActive=150,191,240
|
|
||||||
ForegroundInactive=120,119,117
|
|
||||||
ForegroundLink=80,142,216
|
|
||||||
ForegroundNegative=232,88,72
|
|
||||||
ForegroundNeutral=192,162,95
|
|
||||||
ForegroundNormal=232,230,227
|
|
||||||
ForegroundPositive=120,183,83
|
|
||||||
ForegroundVisited=142,121,165
|
|
||||||
|
|
||||||
[Colors:Selection]
|
|
||||||
BackgroundAlternate=22,68,120
|
|
||||||
BackgroundNormal=24,72,128
|
|
||||||
DecorationFocus=39,94,160
|
|
||||||
DecorationHover=87,129,176
|
|
||||||
ForegroundActive=150,191,240
|
|
||||||
ForegroundInactive=81,119,166
|
|
||||||
ForegroundLink=80,142,216
|
|
||||||
ForegroundNegative=232,88,72
|
|
||||||
ForegroundNeutral=192,162,95
|
|
||||||
ForegroundNormal=255,255,255
|
|
||||||
ForegroundPositive=120,183,83
|
|
||||||
ForegroundVisited=142,121,165
|
|
||||||
|
|
||||||
[Colors:Tooltip]
|
|
||||||
BackgroundAlternate=17,51,86
|
|
||||||
BackgroundNormal=16,48,80
|
|
||||||
DecorationFocus=39,94,160
|
|
||||||
DecorationHover=87,129,176
|
|
||||||
ForegroundActive=150,191,240
|
|
||||||
ForegroundInactive=120,119,117
|
|
||||||
ForegroundLink=80,142,216
|
|
||||||
ForegroundNegative=232,88,72
|
|
||||||
ForegroundNeutral=192,162,95
|
|
||||||
ForegroundNormal=196,209,224
|
|
||||||
ForegroundPositive=120,183,83
|
|
||||||
ForegroundVisited=142,121,165
|
|
||||||
|
|
||||||
[Colors:View]
|
|
||||||
BackgroundAlternate=36,35,35
|
|
||||||
BackgroundNormal=32,31,31
|
|
||||||
DecorationFocus=39,94,160
|
|
||||||
DecorationHover=87,129,176
|
|
||||||
ForegroundActive=150,191,240
|
|
||||||
ForegroundInactive=120,119,117
|
|
||||||
ForegroundLink=80,142,216
|
|
||||||
ForegroundNegative=232,88,72
|
|
||||||
ForegroundNeutral=192,162,95
|
|
||||||
ForegroundNormal=212,210,207
|
|
||||||
ForegroundPositive=120,183,83
|
|
||||||
ForegroundVisited=142,121,165
|
|
||||||
|
|
||||||
[Colors:Window]
|
|
||||||
BackgroundAlternate=52,51,50
|
|
||||||
BackgroundNormal=48,47,47
|
|
||||||
DecorationFocus=39,94,160
|
|
||||||
DecorationHover=87,129,176
|
|
||||||
ForegroundActive=150,191,240
|
|
||||||
ForegroundInactive=120,119,117
|
|
||||||
ForegroundLink=80,142,216
|
|
||||||
ForegroundNegative=232,88,72
|
|
||||||
ForegroundNeutral=192,162,95
|
|
||||||
ForegroundNormal=224,222,219
|
|
||||||
ForegroundPositive=120,183,83
|
|
||||||
ForegroundVisited=142,121,165
|
|
||||||
|
|
||||||
[General]
|
|
||||||
Name=Obsidian Coast
|
|
||||||
|
|
||||||
[WM]
|
|
||||||
activeBackground=19,47,80
|
|
||||||
activeForeground=255,255,255
|
|
||||||
inactiveBackground=64,63,62
|
|
||||||
inactiveForeground=128,127,125
|
|
|
@ -74,9 +74,6 @@
|
||||||
<entry name="FullScreenPreferredMetaInfoKeyList" type="StringList">
|
<entry name="FullScreenPreferredMetaInfoKeyList" type="StringList">
|
||||||
<default>General.Name,Exif.Image.DateTime</default>
|
<default>General.Name,Exif.Image.DateTime</default>
|
||||||
</entry>
|
</entry>
|
||||||
<entry name="FullScreenColorScheme" type="String">
|
|
||||||
<default></default>
|
|
||||||
</entry>
|
|
||||||
<entry name="FullScreenBarHeight" type="Int">
|
<entry name="FullScreenBarHeight" type="Int">
|
||||||
<default>75</default>
|
<default>75</default>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
Loading…
Add table
Reference in a new issue