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

Power off menu. #25

Open
FluffyOMC opened this issue Apr 1, 2019 · 8 comments
Open

Power off menu. #25

FluffyOMC opened this issue Apr 1, 2019 · 8 comments

Comments

@FluffyOMC
Copy link
Contributor

When someone clicks (Turn Off) on the "Turn off computer" menu it should close the tab, and when someone clicks (Restart) it should refresh the tab.

@panmona
Copy link

panmona commented Apr 1, 2019

Some kind of power off seems to be already implemented:

const powerOffAnimation = keyframes`
  0% {
    filter: brightness(1) grayscale(0);
  }
  30% {
    filter: brightness(1) grayscale(0);
  }
  100% {
    filter: brightness(0.6) grayscale(1);
  }
`;
const animation = {
  [POWER_STATE.START]: '',
  [POWER_STATE.TURN_OFF]: powerOffAnimation,
  [POWER_STATE.LOG_OFF]: powerOffAnimation,
};

When is this code triggered?

@FluffyOMC
Copy link
Contributor Author

Never right now. When I click "Turn Off" It shows the fake "C:\ Application not found"

@panmona
Copy link

panmona commented Apr 1, 2019

Yes I know. I haven't found out yet by looking through the code where it would need to be added.

@FluffyOMC
Copy link
Contributor Author

Me neither

@ShizukuIchi
Copy link
Owner

Sounds interesting! But I prefer showing blue screen or shut down... screen.
btw the code @maracuja-juice mentioned is for grayscaling whole app when power off menu is visible.

@FluffyOMC
Copy link
Contributor Author

Hmm which bsod error code?

@FluffyOMC
Copy link
Contributor Author

How about this one? Seeing as we don't really have "Acpi Drivers" due to it being a website.

This BSOD means that the ACPI driver detected an internal inconsistency. BSOD error code 0x000000A3 may also show "ACPI_DRIVER_INTERNAL" on the same blue screen.

@panmona
Copy link

panmona commented Apr 2, 2019

I suggest something like this but for XP: https://screen.now.sh/win10-crash

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

No branches or pull requests

3 participants