Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Bug fixes + enhanced font features #24

Closed
wants to merge 2 commits into from

Conversation

itsthatguy
Copy link
Contributor

  • Uses correct method to extract user configured settings
  • Uses correct config declarations
  • Replaces font-scale with font-size and line-height to make it easier to use
  • Adds font-family setting to allow users to customize the feel

- Uses correct method to extract user configured settings
- Replaces font-scale with font-size and line-height to make it easier to use
- Adds font-family setting to allow users to customize the feel
@@ -19,8 +19,9 @@ GitLogView.prototype.initialize = function(repo_name) {

this.info_panel.hide();
this.path = repo_name;
this.font_size = settings.editor.fontSize * settings['git-log'].fontScale;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You cannot extract settings this way

@komputerwiz
Copy link

Just opened an issue for this (#42) and submitted an alternate solution (#43). I should have checked open PR's first.

+1 on this PR: Font size was not being calculated properly because the settings API now uses atom.config.get(key) (See Configuration API). The call to atom.config.getSettings() returned the default settings (no user overrides).

@nikhilkalige, I leave the choice of which PR to merge up to you. Great work on the plugin!

@nikhilkalige
Copy link
Owner

@komputerwiz Thank you...
@itsthatguy Thanks for the PR,, merged

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

Successfully merging this pull request may close these issues.

None yet

3 participants