Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ set(DTK_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(DTK_VERSION "${DTK_VERSION_MAJOR}.${DTK_VERSION_MINOR}.${DTK_VERSION_PATCH}")
set(QT_VERSION_MAJOR ${DTK_VERSION_MAJOR})

add_compile_definitions(QT_NO_KEYWORDS)

include(dtkgui.cmake)
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
bool enableBlurWindow() const { return m_blur; }
DPlatformHandle::EffectScenes windowEffect() const { return m_effectScene; }

private slots:
private Q_SLOTS:

Check warning on line 56 in src/plugins/platform/treeland/dtreelandplatformwindowinterface.h

View workflow job for this annotation

GitHub Actions / static-check / static-check

There is an unknown macro here somewhere. Configuration is required. If Q_SLOTS is a macro then please configure it.

Check warning on line 56 in src/plugins/platform/treeland/dtreelandplatformwindowinterface.h

View workflow job for this annotation

GitHub Actions / cppcheck

There is an unknown macro here somewhere. Configuration is required. If Q_SLOTS is a macro then please configure it.
void onActiveChanged();
void onSurfaceCreated();
void onSurfaceDestroyed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,35 +97,35 @@
get_window_opacity();
}

void PersonalizationAppearanceContext::treeland_personalization_appearance_context_v1_round_corner_radius(int32_t radius)

Check warning on line 100 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_appearance_context_v1_round_corner_radius' is never used.

Check warning on line 100 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_appearance_context_v1_round_corner_radius' is never used.
{
m_interface->m_windowRadius = radius;
emit m_interface->m_platformTheme->windowRadiusChanged(radius);
Q_EMIT m_interface->m_platformTheme->windowRadiusChanged(radius);
}

void PersonalizationAppearanceContext::treeland_personalization_appearance_context_v1_icon_theme(const QString &theme_name)

Check warning on line 106 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_appearance_context_v1_icon_theme' is never used.

Check warning on line 106 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_appearance_context_v1_icon_theme' is never used.
{
m_interface->m_iconThemeName = theme_name.toUtf8();
emit m_interface->m_platformTheme->iconThemeNameChanged(theme_name.toUtf8());
Q_EMIT m_interface->m_platformTheme->iconThemeNameChanged(theme_name.toUtf8());
}

void PersonalizationAppearanceContext::treeland_personalization_appearance_context_v1_active_color(const QString &active_color)

Check warning on line 112 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_appearance_context_v1_active_color' is never used.

Check warning on line 112 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_appearance_context_v1_active_color' is never used.
{
m_interface->m_activeColor = active_color;
emit m_interface->m_platformTheme->activeColorChanged(active_color);
Q_EMIT m_interface->m_platformTheme->activeColorChanged(active_color);
}

void PersonalizationAppearanceContext::treeland_personalization_appearance_context_v1_window_theme_type(uint32_t type)

Check warning on line 118 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_appearance_context_v1_window_theme_type' is never used.

Check warning on line 118 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_appearance_context_v1_window_theme_type' is never used.
{
QString theme = QStringLiteral("deepin");
if (type == PersonalizationAppearanceContext::theme_type::theme_type_dark) {
theme = theme + QStringLiteral("-dark");
}
m_interface->m_themeName = theme.toUtf8();
emit m_interface->m_platformTheme->themeNameChanged(theme.toUtf8());
Q_EMIT m_interface->m_platformTheme->themeNameChanged(theme.toUtf8());
}

void PersonalizationAppearanceContext::treeland_personalization_appearance_context_v1_window_opacity(uint32_t opacity)

Check warning on line 128 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_appearance_context_v1_window_opacity' is never used.

Check warning on line 128 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_appearance_context_v1_window_opacity' is never used.
{
m_interface->m_blurOpacity = opacity;
}
Expand All @@ -146,25 +146,25 @@
get_font_size();
}

void PersonalizationFontContext::treeland_personalization_font_context_v1_font(const QString &font_name)

Check warning on line 149 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_font_context_v1_font' is never used.

Check warning on line 149 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_font_context_v1_font' is never used.
{
m_interface->m_fontName = font_name.toUtf8();
emit m_interface->m_platformTheme->fontNameChanged(font_name.toUtf8());
Q_EMIT m_interface->m_platformTheme->fontNameChanged(font_name.toUtf8());
}

void PersonalizationFontContext::treeland_personalization_font_context_v1_monospace_font(const QString &font_name)

Check warning on line 155 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_font_context_v1_monospace_font' is never used.

Check warning on line 155 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_font_context_v1_monospace_font' is never used.
{
m_interface->m_monoFontName = font_name.toUtf8();
emit m_interface->m_platformTheme->monoFontNameChanged(font_name.toUtf8());
Q_EMIT m_interface->m_platformTheme->monoFontNameChanged(font_name.toUtf8());
}

void PersonalizationFontContext::treeland_personalization_font_context_v1_font_size(uint32_t font_size)

Check warning on line 161 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

The function 'treeland_personalization_font_context_v1_font_size' is never used.

Check warning on line 161 in src/plugins/platform/treeland/personalizationwaylandclientextension.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

The function 'treeland_personalization_font_context_v1_font_size' is never used.
{
// treeland侧无法存储浮点数,约定 font_size 为 10 倍的 pointSize
qreal pointSize = font_size / 10.0;
pointSize = qBound(8.25, pointSize, 15.00);
m_interface->m_fontPointSize = pointSize;
emit m_interface->m_platformTheme->fontPointSizeChanged(pointSize);
Q_EMIT m_interface->m_platformTheme->fontPointSizeChanged(pointSize);
}

DGUI_END_NAMESPACE
Loading