Skip to content
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

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Modify clumit frontary component #115

merged 1 commit into from
Jul 16, 2024

Conversation

dayeon5470
Copy link
Contributor

Fixes
#95
#100
#101
#102

@dayeon5470 dayeon5470 force-pushed the clumit/tableview branch 3 times, most recently from 69ac8f5 to 5b62cd2 Compare July 1, 2024 07:57
@dayeon5470 dayeon5470 requested a review from sehkone July 1, 2024 07:59
src/lib.rs Outdated Show resolved Hide resolved
src/list/whole/component.rs Outdated Show resolved Hide resolved
src/list/whole/view.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated
Comment on lines 14 to 18
- 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`.
Copy link
Contributor

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`, ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정 완료

@jinjoolee07 jinjoolee07 force-pushed the clumit/tableview branch 2 times, most recently from 2f1f3fb to 85d719e Compare July 11, 2024 02:31
static/frontary/clumit-theme.css Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
Comment on lines 216 to 219
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');"
};
Copy link
Contributor

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}');");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수정 완료했습니다.

Copy link
Contributor

@sophie-cluml sophie-cluml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebase 한번만 부탁드립니다.

Copy link
Contributor

@sophie-cluml sophie-cluml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants