本文整理汇总了C++中Theme::setPreviewSelectorBinaryValue方法的典型用法代码示例。如果您正苦于以下问题:C++ Theme::setPreviewSelectorBinaryValue方法的具体用法?C++ Theme::setPreviewSelectorBinaryValue怎么用?C++ Theme::setPreviewSelectorBinaryValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Theme
的用法示例。
在下文中一共展示了Theme::setPreviewSelectorBinaryValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
//.........这里部分代码省略.........
char* previewString = g_key_file_get_string(key_file, themename, "Preview", &error);
if (previewString == NULL) {
if (error) {
//g_print("configuration Key (Theme %s Preview ) could not be found. use default\n", themename);
g_error_free(error);
error = NULL;
}
}
char* PanelSelectorString = g_key_file_get_string(key_file, themename, "PanelSelector", &error);
if (PanelSelectorString == NULL) {
if (error) {
//g_print("configuration Key (Theme %s PanelSelector ) could not be found. use default\n", themename);
g_error_free(error);
error = NULL;
}
}
char* PreviewTitleTextString = g_key_file_get_string(key_file, themename, "PreviewTitleText", &error);
if (PreviewTitleTextString == NULL) {
if (error) {
//g_print("configuration Key (Theme %s PreviewTitleText ) could not be found. use default\n", themename);
g_error_free(error);
error = NULL;
}
}
char* PreviewSelectorString = g_key_file_get_string(key_file, themename, "PreviewSelector", &error);
if (PreviewSelectorString == NULL) {
if (error) {
//g_print("configuration Key (Theme %s PreviewSelector ) could not be found. use default\n", themename);
g_error_free(error);
error = NULL;
}
}
bool enable;
double lineWidth;
double roundedRadius;
Color background;
Color foreground;
m_theme.setPanelScaleOnhover(panelScaleOnHover);
if (windowString != NULL) {
getColorFromString(windowString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forWindow().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (panelString != NULL) {
getColorFromString(panelString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPanel().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (PanelTitleString != NULL) {
getColorFromString(PanelTitleString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPanelTitle().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (PanelTitleTextString != NULL) {
getColorFromString(PanelTitleTextString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPanelTitleText().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (previewString != NULL) {
getColorFromString(previewString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPreview().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (PanelSelectorString != NULL) {
getColorFromString(PanelSelectorString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPanelSelector().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (PreviewTitleTextString != NULL) {
getColorFromString(PreviewTitleTextString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPreviewTitleText().set(enable, background, foreground, lineWidth, roundedRadius);
}
if (PreviewSelectorString != NULL) {
getColorFromString(PreviewSelectorString, enable, lineWidth, roundedRadius, background, foreground);
m_theme.forPreviewSelector().set(enable, background, foreground, lineWidth, roundedRadius);
}
m_theme.setPanelBinaryValue(panelLinesBinaryValue);
m_theme.setPanelSelectorBinaryValue(panelSelectorLinesBinaryValue);
m_theme.setPreviewBinaryValue(previewlLinesBinaryValue);
m_theme.setPreviewSelectorBinaryValue(previewSelectorLinesBinaryValue);
g_key_file_free(key_file);
return;
}