跳转至

ui/core/material/cfmaterial_theme.cpp

Material Design 3 Theme Implementation. More...

Namespaces

Name
cf
cf::ui
cf::ui::core

Detailed Description

Material Design 3 Theme Implementation.

Author: Charliechen114514 (chengh1922@mails.jlu.edu.cn)

Version: 0.1

Date: 2026-02-27

Copyright: Copyright © 2026

Source code

#include "cfmaterial_theme.h"

namespace cf::ui::core {

MaterialTheme::MaterialTheme(std::unique_ptr<MaterialColorScheme> color_scheme,
                             std::unique_ptr<MaterialTypography> font_type,
                             std::unique_ptr<MaterialRadiusScale> radius_scale,
                             std::unique_ptr<MaterialMotionScheme> motion_spec) {
    // Initialize base class protected members
    color_scheme_ = std::move(color_scheme);
    font_type_ = std::move(font_type);
    radius_scale_ = std::move(radius_scale);
    motion_spec_ = std::move(motion_spec);
}

} // namespace cf::ui::core

Updated on 2026-03-09 at 10:14:01 +0000