2012-03-02 58 views
4

我想爲我正在構建的應用程序的某些控件使用NOkia藍色。我正在測試諾基亞Lumia 800上的應用程序,所有顏色顯示不同。我想知道是否有人可以在Windows Phone中共享諾基亞藍色主題的十六進制代碼。什麼是Windows Phone 7上的諾基亞藍色的十六進制代碼?

+0

我正在談論諾基亞Lumia設備上的諾基亞藍色主題。 – 2012-03-02 04:10:20

回答

10
Nokia Blue: #004C9A 

我終於從XDA論壇得到了這個。信貸去向他們。

0

上找到microsoft site確定重點色彩:

Color currentAccentColorHex = (Color)Application.Current.Resources["PhoneAccentColor"]; 

string currentAccentColor = ""; 

switch (currentAccentColorHex.ToString()) 
{ 
    case "#FF1BA1E2": currentAccentColor = "blue"; break; 

    case "#FFA05000": currentAccentColor = "brown"; break; 

    case "#FF339933": currentAccentColor = "green"; break; 

    case "#FFE671B8": currentAccentColor = "pink"; break; 

    case "#FFA200FF": currentAccentColor = "purple"; break; 

    case "#FFE51400": currentAccentColor = "red"; break; 

    case "#FF00ABA9": currentAccentColor = "teal (viridian)"; break; 

    // Lime changed to #FFA2C139 in Windows Phone OS 7.1. 
    case "#FF8CBF26": 
    case "#FFA2C139": currentAccentColor = "lime"; break; 

    // Magenta changed to # FFD80073 in Windows Phone OS 7.1. 
    case "#FFFF0097": 
    case "#FFD80073": currentAccentColor = "magenta"; break; 

    // #FFF9609 (previously orange) is named mango in Windows Phone OS 7.1. 
    case "#FFF09609": currentAccentColor = "mango (orange)"; break; 

    // Mobile operator or hardware manufacturer color 
    default: currentAccentColor = "custom eleventh color"; break; 
} 

所以藍色是:#FF1BA1E2

如果沒有,你可以寫你自己的快速測試代碼:

Color currentAccentColorHex = (Color)Application.Current.Resources["PhoneAccentColor"]; 
MessageBox.Show("#" + currentAccentColorHex.ToString("X2")); 

運行此之前,代碼,將您的主題設置爲諾基亞藍色。

相關問題