Skip to content

Commit

Permalink
Linux Support
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarrett committed Aug 14, 2015
1 parent bb8e77d commit 87c9ff0
Show file tree
Hide file tree
Showing 65 changed files with 17,858 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function (grunt) {
buildDir: './dist', // Where the build version of my node-webkit app is saved
macIcns: './app/soundnode.icns',
downloadUrl: 'http://www.soundnodeapp.com/build/',
platforms: ['osx64', 'win32'],
platforms: ['linux64', 'osx64', 'win32'],
version: '0.12.3'
},
src: [
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ See the [Development's page](https://github.com/Soundnode/soundnode-app/wiki/Dev

- Windows
- Mac
- Linux

## Author

Expand Down
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h4>Authenticating your Soundcloud account.</h4>
<!-- header -->
<header class="topFrame">
<ul class="windowAction">
<action-buttons class="linuxActionButtons" ng-if="isRunningLinux" os="Linux"></action-buttons>
<action-buttons class="macActionButtons" ng-if="isRunningMac" os="Mac"></action-buttons>
<li class="windowAction_item navigationButton goBack" ng-click="goBack()">
<i class="fa fa-chevron-left"></i>
Expand Down
7 changes: 4 additions & 3 deletions app/public/js/common/appCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ app.controller('AppCtrl', function ($rootScope, $scope, $window, $log, ngDialog)
$scope.isSettingsVisible = false;

// Os detection
$scope.isRunningLinux = process.platform == 'linux32' || 'linux64';
$scope.isRunningWindows = process.platform == 'win32';
$scope.isRunningMac = process.platform == 'darwin';

$scope.toggleSettings = function() {
if ( $scope.isSettingsVisible ) {
$scope.isSettingsVisible = false;
} else {
$scope.isSettingsVisible = true;
}
};

// check if track has Art work
// otherwise replace to Soundnode App logo
$scope.showBigArtwork = function (img) {
Expand Down Expand Up @@ -55,4 +56,4 @@ app.controller('AppCtrl', function ($rootScope, $scope, $window, $log, ngDialog)
ngDialog.closeAll();
};

});
});
17 changes: 17 additions & 0 deletions app/public/stylesheets/sass/_components/_topFrame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@
}
}

.linuxActionButtons {
& #closeApp {
background: #D96C76;

& .fa {
position: relative;
top: -1px;
}
}
& #minimizeApp {
background: #FDF9C6;
}
& #expandApp {
background: #96E1C7;
}
}

.windowsActionButtons {
float: right;
-webkit-app-region: no-drag;
Expand Down
9 changes: 9 additions & 0 deletions app/views/common/actionButtonsLinux.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<li class="windowAction_item " id="closeApp">
<i class="fa fa-times"></i>
</li>
<li class="windowAction_item " id="minimizeApp">
<i class="fa fa-minus"></i>
</li>
<li class="windowAction_item " id="expandApp">
<i class="fa fa-plus"></i>
</li>
Loading

0 comments on commit 87c9ff0

Please sign in to comment.