This should fix R5 build. Won't change color (and misses fonts yet) but the rest should work mostly (even setting one of the 4 decors).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23752 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Vendored
+1
-1
@@ -11,8 +11,8 @@ local addonSources ;
|
|||||||
addonSources =
|
addonSources =
|
||||||
BackgroundsAddon.cpp
|
BackgroundsAddon.cpp
|
||||||
BeIDEAddon.cpp
|
BeIDEAddon.cpp
|
||||||
|
BeOSWindowDecorAddon.cpp
|
||||||
DanoUISettingsAddon.cpp
|
DanoUISettingsAddon.cpp
|
||||||
DanoWindowDecorAddon.cpp
|
|
||||||
DeskbarAddon.cpp
|
DeskbarAddon.cpp
|
||||||
EddieAddon.cpp
|
EddieAddon.cpp
|
||||||
HaikuUISettingsAddon.cpp
|
HaikuUISettingsAddon.cpp
|
||||||
|
|||||||
+2
@@ -192,8 +192,10 @@ status_t ThemeManager::LoadAddons()
|
|||||||
ta = instanciate_themes_addon_sounds();
|
ta = instanciate_themes_addon_sounds();
|
||||||
ta = instanciate_themes_addon_terminal();
|
ta = instanciate_themes_addon_terminal();
|
||||||
ADDA(ta);
|
ADDA(ta);
|
||||||
|
#if defined(__HAIKU__) || defined(B_BEOS_VERSION_DANO)
|
||||||
ta = instanciate_themes_addon_ui_settings();
|
ta = instanciate_themes_addon_ui_settings();
|
||||||
ADDA(ta);
|
ADDA(ta);
|
||||||
|
#endif
|
||||||
#ifndef ZETA_ADDONS
|
#ifndef ZETA_ADDONS
|
||||||
ta = instanciate_themes_addon_winamp_skin();
|
ta = instanciate_themes_addon_winamp_skin();
|
||||||
ADDA(ta);
|
ADDA(ta);
|
||||||
|
|||||||
Vendored
+19
-3
@@ -47,12 +47,11 @@
|
|||||||
// do read settings from native storage
|
// do read settings from native storage
|
||||||
#define UI_THEME_SETTINGS_RETRIEVE 0x00000004
|
#define UI_THEME_SETTINGS_RETRIEVE 0x00000004
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define Z_THEMES_FOLDER_NAME "UIThemes"
|
#define Z_THEMES_FOLDER_NAME "UIThemes"
|
||||||
#define Z_THEME_FILE_NAME "Theme"
|
#define Z_THEME_FILE_NAME "Theme"
|
||||||
|
|
||||||
|
/* compatibility stuff ahead */
|
||||||
|
|
||||||
/* some field names not always defined */
|
/* some field names not always defined */
|
||||||
#ifndef B_BEOS_VERSION_DANO
|
#ifndef B_BEOS_VERSION_DANO
|
||||||
#define B_UI_PANEL_BACKGROUND_COLOR "be:c:PanBg"
|
#define B_UI_PANEL_BACKGROUND_COLOR "be:c:PanBg"
|
||||||
@@ -82,4 +81,21 @@
|
|||||||
#define B_UI_SETTINGS_CHANGED '_UIC'
|
#define B_UI_SETTINGS_CHANGED '_UIC'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __HAIKU__
|
||||||
|
#ifndef B_BEOS_VERSION_DANO
|
||||||
|
// R5 compatibility
|
||||||
|
#define B_PANEL_TEXT_COLOR B_MENU_ITEM_TEXT_COLOR
|
||||||
|
inline rgb_color make_color(uint8 red, uint8 green, uint8 blue, uint8 alpha=255)
|
||||||
|
{
|
||||||
|
rgb_color c;
|
||||||
|
c.red = red;
|
||||||
|
c.green = green;
|
||||||
|
c.blue = blue;
|
||||||
|
c.alpha = alpha;
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* _Z_UI_THEME_H */
|
#endif /* _Z_UI_THEME_H */
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <BeBuild.h>
|
#include <BeBuild.h>
|
||||||
#ifdef B_BEOS_VERSION_DANO
|
#if defined(B_BEOS_VERSION) && !defined(__HAIKU__)
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
@@ -161,4 +161,4 @@ ThemesAddon *instanciate_themes_addon()
|
|||||||
return (ThemesAddon *) new DecorThemesAddon;
|
return (ThemesAddon *) new DecorThemesAddon;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* B_BEOS_VERSION_DANO */
|
#endif /* B_BEOS_VERSION && !__HAIKU__ */
|
||||||
@@ -143,8 +143,10 @@ status_t SoundsThemesAddon::ApplyTheme(BMessage &theme, uint32 flags)
|
|||||||
continue;
|
continue;
|
||||||
if (msg.FindFloat("sounds:volume", &gain) < B_OK)
|
if (msg.FindFloat("sounds:volume", &gain) < B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
#if defined(__HAIKU__) || defined(B_BEOS_VERSION_DANO)
|
||||||
if (bmfs.SetAudioGainFor(BMediaFiles::B_SOUNDS, field_name, gain) < B_OK)
|
if (bmfs.SetAudioGainFor(BMediaFiles::B_SOUNDS, field_name, gain) < B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
@@ -175,8 +177,10 @@ status_t SoundsThemesAddon::MakeTheme(BMessage &theme, uint32 flags)
|
|||||||
//printf("\t%s: %s\n", item.String(), path.Path());
|
//printf("\t%s: %s\n", item.String(), path.Path());
|
||||||
if (path.Path()) {
|
if (path.Path()) {
|
||||||
msg.AddString("sounds:file", path.Path());
|
msg.AddString("sounds:file", path.Path());
|
||||||
|
#if defined(__HAIKU__) || defined(B_BEOS_VERSION_DANO)
|
||||||
if (bmfs.GetAudioGainFor(BMediaFiles::B_SOUNDS, item.String(), &gain) >= B_OK)
|
if (bmfs.GetAudioGainFor(BMediaFiles::B_SOUNDS, item.String(), &gain) >= B_OK)
|
||||||
msg.AddFloat("sounds:volume", gain);
|
msg.AddFloat("sounds:volume", gain);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
sounds.AddMessage(item.String(), &msg);
|
sounds.AddMessage(item.String(), &msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user