Skip to content

Conversation

@qwepoizt
Copy link
Owner

@markus2330: This PR implements a new configuration value "fade duration" in redshift with Elektra.

It will be used to compare the implementation of new configuration values without vs. with Elektra.

Copy link

@markus2330 markus2330 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!


[fade/duration]
type = unsigned_long
description = Set fade duration (for fading between color temperatures) in full seconds.

Choose a reason for hiding this comment

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

Suggested change
description = Set fade duration (for fading between color temperatures) in full seconds.
description = Set length of the fade duration in full seconds for fading between color temperatures.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, this is easier to understand, thank you!

Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed.

options->provider = NULL;

options->use_fade = -1;
options->fade_duration = -1;

Choose a reason for hiding this comment

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

indent

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks, fixed. I also adjusted CLion IDE to better detect existing indents in files.

src/options.h Outdated
int temp_set;
/* Whether to fade between large skips in color temperature. */
int use_fade;
/* The length of the fade duration in seconds */

Choose a reason for hiding this comment

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

This should probably link to the spec "fade/duration" and not repeat the description?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, thanks for the hint!

Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed.

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.

3 participants