Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Numerous UI improvements

uggrockc10c80a49294
diff --git a/data/css/tagspaces.css b/data/css/tagspaces.css
index e6d70d7f5..5f22de4e0 100644
--- a/data/css/tagspaces.css
+++ b/data/css/tagspaces.css
@@ -163,40 +163,39 @@ li hr {
border: 0px;
}
-.suggestedTagButton {
- background-color: #99B3FF;
- font-weight: bold;
- font-size: 1em;
- color: white;
- padding: 1px;
- margin: 1px;
- border-color: transparent;
+.simplecolorpicker {
+ width: 40px;
+ border: 1px solid #999 !important;
+}
+
+.tagButton .caret, .extTagButton .caret {
+ border-top-color: white !important;
}
-/* @baseTagColor; */
.tagButton {
- padding: 0px 2px 0px 2px;
- /* background: #008000 !important; */
+ padding: 2px 4px 2px 4px;
+ background: #008000 !important;
color: white !important;
margin: 1px;
- border-color: transparent;
+ border: 0px;
z-index: 9999;
+ border-radius: 5px !important;
+ text-decoration: none !important;
+ text-shadow: 0px 0px !important;
}
-.tagButton:hover {
- color: white;
-}
-
-.tagButton:active {
- color: white;
-}
-
-.simplecolorpicker {
- width: 40px;
- border: 1px solid #999 !important;
+.extTagButton {
+ padding: 2px 4px 2px 4px;
+ background: #bbb !important;
+ color: white !important;
+ margin: 1px;
+ border: 0px;
+ z-index: 9999;
+ border-radius: 5px !important;
+ text-decoration: none;
+ text-shadow: 0px 0px !important;
}
-
.fileButton {
padding: 1px;
background-color: #E5E5E5;
@@ -218,22 +217,14 @@ li hr {
z-index: 9999;
text-align: left;
cursor: move;
- border-color: #eee;
+/* border-color: #eee;*/
+ background-image: none;
}
.fileTitleButton:hover {
border-color: #ddd;
}
-.extTagButton {
- padding: 0px 2px 0px 2px;
- color: white !important;
- margin: 1px;
- border-color: transparent;
- z-index: 9999;
- margin: 1px;
-}
-
#container {
height: 100%;
margin: 0 auto;
@@ -250,8 +241,8 @@ li hr {
}
.ui-layout-north {
- padding: 0px;
- height: 40px;
+ padding: 0px;
+ height: 40px;
background-color: #333333;
overflow: hidden !important;
}
@@ -289,7 +280,7 @@ li hr {
.east-north {
background-color: #FFFFFF;
- overflow: hidden !important;
+ overflow: hidden !important;
}
/* Full screen workaround for webkit browser*/
@@ -302,22 +293,22 @@ li hr {
background-color: white;
}
-/* Directory Navigation css*/
+/* Directory Navigation #F6A828*/
.dirButton {
- padding: 1px;
- /* background-color: @directoryColor !important; */
- font-weight: bold;
- /* font-size: @tagFontSize; */
- color: white;
- margin: 1px;
- border-color: transparent;
- /* .roundedTagCorners; */
+ font-size: 13px;
+ background-color: #f5f5f5;
+ color: #444444;
+ background-image: none;
+/* border-color: transparent; */
}
.dirButton:hover, .dirButton:active, .dirButton:focus {
- text-decoration: none;
- color: white;
+ background-color: #dddddd;
+}
+
+.dropOnFolder {
+ background-color: #F6A828 !important;
}
/*desaturate(@directoryColor, 30%) */
@@ -399,7 +390,7 @@ table.dataTable tr.odd {
.activeRow { background: #FFCC99 !important; }
table.dataTable tr.ui-selecting { background: #fff5a3 !important; }
-table.dataTable tr.ui-selected { background: #fff5a3 !important; }
+table.dataTable tr.ui-selected { background: #F7FFC9 !important; }
table.dataTable tr.odd td.sorting_1 { background-color: inherit; }
table.dataTable tr.odd td.sorting_2 { background-color: inherit; }
@@ -444,17 +435,24 @@ input a.resetFilter {
/* Bootstrap Styles */
+.btn, .btn:hover, .btn:focus, .btn:active {
+ background-image: none;
+ border-radius: 2px;
+}
+/*
+.btn-group {
+ border-radius: 2px;
+}
+
+.btn:last-child {
+ border-radius: 0 2px 2px 0;
+} */
+
.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active {
text-decoration: none;
color: gray;
text-shadow: none;
-}
-
-/* Folders */
-.btn-warning, .btn-warning:hover, .btn-warning:focus, .btn-warning:active {
- background-color: #F6A828;
- background-image: none;
- text-shadow: none;
+ border-radius: 0px;
}
/* Extension #33b5be from logo */
diff --git a/data/ext/perspectiveDefault/perspectiveUI.js b/data/ext/perspectiveDefault/perspectiveUI.js
index a93c20138..26f690028 100644
--- a/data/ext/perspectiveDefault/perspectiveUI.js
+++ b/data/ext/perspectiveDefault/perspectiveUI.js
@@ -59,7 +59,7 @@ console.log("Loading UI for perspectiveDefault");
filepath: filePath,
class: 'btn fileTitleButton',
})
- .append("<i class='icon-file' />")
+ .append("<i class='icon-file-alt' />")
.append("<span class='caret'/>")
).html();
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index b9f1a85e4..eab9f226a 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -91,7 +91,7 @@ define(function(require, exports, module) {
.droppable({
greedy: "true",
accept: '.fileTitleButton',
- hoverClass: "btn-info",
+ hoverClass: "dropOnFolder",
drop: function( event, ui ) {
var filePath = ui.draggable.attr("filepath");
var fileName = TSCORE.TagUtils.extractFileName(filePath);
@@ -134,13 +134,13 @@ define(function(require, exports, module) {
var dirButtons = $("<div>").appendTo( "#dirButtonsContent"+i );
if(directoryHistory[i]["children"].length <= 0) {
- dirButtons.append("<div class='alert alert-info'><strong>Info:</strong> No subfolders found.</div>");
+ dirButtons.append("<div class='alert'><strong> No subfolders found</strong></div>");
} else {
for(var j=0; j < directoryHistory[i]["children"].length; j++) {
if (TSCORE.Config.getShowUnixHiddenEntries() ||
(!TSCORE.Config.getShowUnixHiddenEntries() && (directoryHistory[i]["children"][j].title.indexOf(".") != 0))) {
dirButtons.append($("<button>", {
- "class": "btn btn-warning btn-small",
+ "class": "btn btn-small dirButton",
"key": directoryHistory[i]["children"][j].key,
"title": directoryHistory[i]["children"][j].key,
"style": "margin: 1px;",
@@ -149,7 +149,7 @@ define(function(require, exports, module) {
.droppable({
greedy: "true",
accept: ".fileTitleButton",
- hoverClass: "btn-info",
+ hoverClass: "dropOnFolder",
drop: function( event, ui ) {
// Fixing issue with dropping on stacked/overlapped directories
if( $(this).parent().parent().parent().hasClass("in") ) {
@@ -162,7 +162,7 @@ define(function(require, exports, module) {
}
}
})
- .prepend("<i class='icon-folder-close'></i>")
+ .prepend("<i class='icon-folder-close-alt'></i>")
.click( function() {
navigateToDirectory($(this).attr("key"));
})
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 386b97074..e14f91f71 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -247,7 +247,7 @@ define(function(require, exports, module) {
})
));
$( "#tagSuggestionsMenu" ).append($('<li>', {class: "divider"}));
- $( "#tagSuggestionsMenu" ).append($('<li>').append($('<a>', {text: " Tag Suggestion" })))
+ $( "#tagSuggestionsMenu" ).append($('<li>').append($('<a>', {text: " Tag Suggestions:" })))
// Adding context menu entries for creating tags according to the suggested tags
for (var i=0; i < suggTags.length; i++) {
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index 42669745c..2f3caf2d4 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -45,9 +45,9 @@ define(function(require, exports, module) {
"appVersion": "@VERSION@",
"appBuild": "@BUILD@",
"settingsVersion": 2,
- "newTextFileContent": "Text file created with tagspaces!",
+ "newTextFileContent": "Text file created with TagSpaces!",
"newHTMLFileContent": "<html><head><title>Tagspaces File</title></head><body>HTML file created with tagspaces!</body></html>",
- "newMDFileContent": '#Markdown file created with tagspaces!',
+ "newMDFileContent": '#Markdown file created with TagSpaces!',
"showUnixHiddenEntries": false,
"checkForUpdates": true,
"lastOpenedDirectory": "",
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index 520fbc6a0..7f482f6b9 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -218,7 +218,7 @@ define(function(require, exports, module) {
var tagButtons = $("<div>").appendTo( "#tagButtonsContent"+i );
for(var j=0; j < TSCORE.Config.Settings["tagGroups"][i]["children"].length; j++) {
tagButtons.append($("<a>", {
- "class": "btn btn-small btn-success tagButton",
+ "class": "btn btn-small tagButton",
"tag": TSCORE.Config.Settings["tagGroups"][i]["children"][j].title,
"parentKey": TSCORE.Config.Settings["tagGroups"][i].key,
"title": "Opens context menu for "+TSCORE.Config.Settings["tagGroups"][i]["children"][j].title,
@@ -265,7 +265,7 @@ define(function(require, exports, module) {
tag: tags[i],
filename: fileName,
filepath: filePath,
- "class": "btn btn-small btn-success tagButton",
+ "class": "btn btn-small tagButton",
text: tags[i]+" ",
style: generateTagStyle(TSCORE.Config.findTag(tags[i]))
})
@@ -302,7 +302,7 @@ define(function(require, exports, module) {
tag: fileExtension,
filename: fileName,
filepath: filePath,
- "class": "btn btn-small btn-info extTagButton",
+ "class": "btn btn-small extTagButton",
text: fileExtension+" "
})
.append("<span class='caret'/>")