[gthumb] empty list: use "No file" instead of "Empty", bigger font
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] empty list: use "No file" instead of "Empty", bigger font
- Date: Sat, 19 Jun 2021 18:10:41 +0000 (UTC)
commit cb5479aa79b8a5d4248bec1788cc20a2a6fc3994
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat May 22 10:08:17 2021 +0200
empty list: use "No file" instead of "Empty", bigger font
gthumb/gth-empty-list.c | 1 +
gthumb/gth-file-list.c | 8 ++++----
gthumb/gth-folder-tree.c | 2 +-
gthumb/resources/gthumb.css | 6 ++++++
4 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/gth-empty-list.c b/gthumb/gth-empty-list.c
index 4db43e02..533ce7c2 100644
--- a/gthumb/gth-empty-list.c
+++ b/gthumb/gth-empty-list.c
@@ -296,6 +296,7 @@ gth_empty_list_init (GthEmptyList *self)
style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_VIEW);
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_FRAME);
+ gtk_style_context_add_class (style_context, "empty-view");
}
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 84144cb9..a6c39112 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -39,7 +39,7 @@
#define RESTART_LOADING_THUMBS_DELAY 1500
#define N_VIEWAHEAD 50
#define N_CREATEAHEAD 50000
-#define EMPTY (N_("(Empty)"))
+#define NO_FILE_MSG (N_("No file"))
#define CHECK_JOBS_INTERVAL 50
#define _FILE_VIEW "file-view"
#define _EMPTY_VIEW "empty-view"
@@ -557,7 +557,7 @@ gth_file_list_construct (GthFileList *file_list,
/* the message pane */
- file_list->priv->message = gth_empty_list_new (_(EMPTY));
+ file_list->priv->message = gth_empty_list_new (_(NO_FILE_MSG));
/* the file view */
@@ -839,7 +839,7 @@ gth_file_list_clear (GthFileList *file_list,
GthFileListOp *op;
op = gth_file_list_op_new (GTH_FILE_LIST_OP_TYPE_CLEAR_FILES);
- op->sval = g_strdup (message != NULL ? message : _(EMPTY));
+ op->sval = g_strdup (message != NULL ? message : _(NO_FILE_MSG));
_gth_file_list_queue_op (file_list, op);
}
@@ -1067,7 +1067,7 @@ gth_file_list_set_files (GthFileList *file_list,
}
else {
op = gth_file_list_op_new (GTH_FILE_LIST_OP_TYPE_CLEAR_FILES);
- op->sval = g_strdup (_(EMPTY));
+ op->sval = g_strdup (_(NO_FILE_MSG));
_gth_file_list_queue_op (file_list, op);
}
}
diff --git a/gthumb/gth-folder-tree.c b/gthumb/gth-folder-tree.c
index 2fa10850..47735c82 100644
--- a/gthumb/gth-folder-tree.c
+++ b/gthumb/gth-folder-tree.c
@@ -1183,7 +1183,7 @@ _gth_folder_tree_add_empty_item (GthFolderTree *folder_tree,
gtk_tree_store_set (folder_tree->priv->tree_store, &iter,
COLUMN_STYLE, PANGO_STYLE_ITALIC,
COLUMN_TYPE, ENTRY_TYPE_EMPTY,
- COLUMN_NAME, _("(Empty)"),
+ COLUMN_NAME, _("No file"),
COLUMN_SORT_KEY, sort_key,
COLUMN_SORT_ORDER, 0,
COLUMN_SECONDARY_SORT_ORDER, 0,
diff --git a/gthumb/resources/gthumb.css b/gthumb/resources/gthumb.css
index 980517f2..36c29b01 100644
--- a/gthumb/resources/gthumb.css
+++ b/gthumb/resources/gthumb.css
@@ -21,6 +21,12 @@ GthEmptyList.frame:backdrop {
border-color: @unfocused_borders;
}
+.empty-view {
+ font-weight: 300;
+ font-size: 24pt;
+ opacity: 0.5;
+}
+
/* -- histogram -- */
.histogram {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]