-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify clumit frontary component #115
Conversation
69ac8f5
to
5b62cd2
Compare
716c9fb
to
b5fa257
Compare
b5fa257
to
9235e90
Compare
CHANGELOG.md
Outdated
- Added Clumit components: `Radio`, `CheckBox`, `TabMenu`, `Modal`. | ||
- Added `Svg` to fetch and display a SVG file. | ||
- Added Clumit components: `Sort`, `SelectMini`, `SelectSearchable`, `Input`, | ||
`view_asterisk`, `Notification`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컴포넌트를 새로 추가한 게 아니라 theme을 추가한 것이니 아래처럼 수정해야 겠네요.
Applied the Clumit theme to `Radio`, `CheckBox`, ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 완료
2f1f3fb
to
85d719e
Compare
src/list/whole/view.rs
Outdated
if cfg!(feature = "pumpkin-dark") { | ||
"background-image: url('/frontary/clumit-collapse-list.png');" | ||
} else { | ||
"background-image: url('/frontary/collapse-list.png');" | ||
} | ||
} else if cfg!(feature = "pumpkin-dark"){ | ||
"background-image: url('/frontary/clumit-expand-list.png');" | ||
} else { | ||
"background-image: url('/frontary/expand-list.png');" | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest this:
let prefix = if cfg!(feature = "pumpkin-dark") {
"clumit-"
} else {
""
};
let expand_collapse_img = if self.expand_list.contains(key) {
"collapse-list.png"
} else {
"expand-list.png"
};
let style = format!("background-image: url('/frontary/{prefix}{expand_collapse_img}');");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 완료했습니다.
85d719e
to
07b6820
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase 한번만 부탁드립니다.
07b6820
to
2883abb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes
#95
#100
#101
#102