RunCat365 icon indicating copy to clipboard operation
RunCat365 copied to clipboard

Red runner icons generator

Open mor39a opened this issue 1 year ago • 5 comments

Context of Contribution

  • [ ] Bug Fix
  • [ ] Refactoring
  • [x] New Feature
  • [ ] Others

Summary of the Proposal

Fix comment #256 (comment) I was unable to create the PR directly on the @Sogeum100g fork

Reason for the new feature

Improve #256

Checklist

  • [x] This PR does not contain commits of multiple contexts.
  • [x] Code follows proper indentation and naming conventions.
  • [x] Implemented using only APIs that can be submitted to the Microsoft Store.
  • [x] Works correctly in both dark theme and light theme.
  • [x] Works correctly on any device.

mor39a avatar Nov 29 '25 04:11 mor39a

@mor39a Instead of using it to turn the runner red, we could repurpose this mechanism to turn a black image white, couldn't we?

Kyome22 avatar Jan 13 '26 14:01 Kyome22

@mor39a Instead of using it to turn the runner red, we could repurpose this mechanism to turn a black image white, couldn't we?

Of course, we can change the runner from any color to any other. What do you have in mind?

mor39a avatar Jan 14 '26 03:01 mor39a

@mor39a Monitoring system performance every second to change the runner's color to red and back feels like a waste of PC resources for a resident app. On the other hand, since we currently provide both black and white versions of the runner images, we are unnecessarily consuming resources in terms of file size. I think it would be better to include only the black images in the app and change them to white only when necessary. Since theme changes are infrequent, the impact on PC load should be negligible.

Therefore, I suggest we hold off on the red color for now and focus on recreating the PR to prioritize switching between black and white.

(As an idea, instead of redrawing the runner in red every second, we could prepare additional red runner images when they are selected, and shift the index by an offset if needed. This way, it shouldn't affect performance.)

images = [black0, black1, black2, red0, red1, red2]
index = 0
total = 3
...
index = (index + 1) % total + (isNeedsRed ? total : 0)

Kyome22 avatar Jan 14 '26 08:01 Kyome22

@Kyome22 If I understand correctly, you want me to create a new PR for the white and black runners. And then, after that, apply your idea about the indices for the red runners. Is that right? Or do you want me to handle everything in the same PR?

mor39a avatar Jan 15 '26 23:01 mor39a

@mor39a Thank you for your reply. Regarding the feature to toggle between white and black, it is an existing issue within the app, so I am motivated to solve it.

On the other hand, I have absolutely no motivation to turn the runner red (even though I can think of a solution), so I’m fine with skipping it.

So, if you are motivated, I would appreciate it if you could create a PR for toggling between white and black.

Kyome22 avatar Jan 16 '26 00:01 Kyome22

So, if you are motivated, I would appreciate it if you could create a PR for toggling between white and black.

Hi, sorry for the delay. I've been a bit busy. Even so, of course, I'll do the PR.

mor39a avatar Jan 25 '26 14:01 mor39a

@Kyome22 One question: now that I’m a collaborator, should I work on a new branch in the main repository, or should I continue working from my fork?

mor39a avatar Jan 25 '26 14:01 mor39a

@Kyome22 One question: now that I’m a collaborator, should I work on a new branch in the main repository, or should I continue working from my fork?

Since the purpose of this Pull Request seems to be changing, it might be cleaner to open a new PR and close the current one. Whichever way is easier for you works for me.

Kyome22 avatar Jan 26 '26 01:01 Kyome22