Skip to content

feat: Themes feature redesign - #52

Open
Punnawit9285 wants to merge 3 commits into
docchula:masterfrom
Punnawit9285:pink
Open

feat: Themes feature redesign#52
Punnawit9285 wants to merge 3 commits into
docchula:masterfrom
Punnawit9285:pink

Conversation

@Punnawit9285

Copy link
Copy Markdown
Collaborator

No description provided.

@Punnawit9285 Punnawit9285 changed the title Pink 1st Pink UI + Safari Jul 21, 2026
@Punnawit9285 Punnawit9285 changed the title Pink UI + Safari Pink UI Jul 21, 2026
@ittipatken

ittipatken commented Jul 21, 2026

Copy link
Copy Markdown
Member

The theme is too specific and hard-coded. I am sorry, but I can’t endorse this pull request yet.
I suggests writing a generalized theme, e.g. https://github.com/docchula/el-player.

@Punnawit9285 Punnawit9285 changed the title Pink UI Themes feature redesign Jul 23, 2026
@Punnawit9285 Punnawit9285 changed the title Themes feature redesign feat: Themes feature redesign Jul 24, 2026
Comment thread .agents/AGENTS.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't recommend adding AI-related files yet.

<ion-back-button slot="start" defaultHref="/home"></ion-back-button>
<ion-title>
<span [ngStyle]="{'background-color': colorByFolderName(year)}">{{ year || 'Loading'}}</span>
<span [ngStyle]="{'background-color': getYearColor()}">{{ year || 'Loading'}}</span>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there any reason for the name changes?

year: string;
list$: Observable<{ name: string, is_remote: boolean, id: number, link: string[] }[]>;

constructor() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure what this line do.

Comment thread src/app/home/home.page.ts
protected readonly colorByFolderNamePink = colorByFolderNamePink;

getCardColor(folder: string): string {
return this.themeService.isPinkMode ? colorByFolderNamePink(folder) : colorByFolderName(folder);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should not use "Pink" as a variable name.

Comment thread src/app/home/home.page.ts
}

protected readonly colorByFolderName = colorByFolderName;
protected readonly colorByFolderNamePink = colorByFolderNamePink;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should not use "Pink" as a variable name.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The component should be separate by 3 files, i.e. html, scss, and ts.

Comment thread src/app/theme.service.ts
return this.resolveEffective(this.themeMode.value) === 'dark';
}

get isPinkMode(): boolean {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is hard-coding pink color. It should support any color.

Comment thread src/helpers.ts
return colorMap[name] || 'gray';
}

export function colorByFolderNamePink(name: string) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a fixed function name for pink color.

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.

2 participants