[arch-commits] Commit in xfce4-weather-plugin/trunk (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Aug 21 15:49:02 UTC 2020
Date: Friday, August 21, 2020 @ 15:49:02
Author: foutrelis
Revision: 394477
upgpkg: xfce4-weather-plugin 0.10.1-2: improve contrast in weather report
Added:
xfce4-weather-plugin/trunk/improve-contrast-in-weather-report.patch
Modified:
xfce4-weather-plugin/trunk/PKGBUILD
------------------------------------------+
PKGBUILD | 13 +++++++---
improve-contrast-in-weather-report.patch | 37 +++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-21 15:14:52 UTC (rev 394476)
+++ PKGBUILD 2020-08-21 15:49:02 UTC (rev 394477)
@@ -3,7 +3,7 @@
pkgname=xfce4-weather-plugin
pkgver=0.10.1
-pkgrel=1
+pkgrel=2
pkgdesc="A weather plugin for the Xfce4 panel"
arch=('x86_64')
url="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin"
@@ -11,9 +11,16 @@
groups=('xfce4-goodies')
depends=('xfce4-panel' 'libxml2' 'libsoup' 'hicolor-icon-theme')
makedepends=('intltool')
-source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('afb2af5f3effc2ea6181636ed0e82e6dafd556ec1b8478100802f85a5d167a89')
+source=(https://archive.xfce.org/src/panel-plugins/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+ improve-contrast-in-weather-report.patch)
+sha256sums=('afb2af5f3effc2ea6181636ed0e82e6dafd556ec1b8478100802f85a5d167a89'
+ 'da52ea354f740b3543ca74eba41cd5c279a2de0a22dbf8526805839cdc5c75db')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ../improve-contrast-in-weather-report.patch
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
Added: improve-contrast-in-weather-report.patch
===================================================================
--- improve-contrast-in-weather-report.patch (rev 0)
+++ improve-contrast-in-weather-report.patch 2020-08-21 15:49:02 UTC (rev 394477)
@@ -0,0 +1,37 @@
+From 5ddbfecdcc1cb300072572775fafbec9084f422d Mon Sep 17 00:00:00 2001
+From: Sean Davis <smd.seandavis at gmail.com>
+Date: Sun, 1 Mar 2020 07:35:07 -0500
+Subject: [PATCH] Improve contrast in weather report, similar to GTK2 + Adwaita
+ (bug #15806)
+
+---
+ panel-plugin/weather-summary.c | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
+index e66abf0..afce939 100644
+--- a/panel-plugin/weather-summary.c
++++ b/panel-plugin/weather-summary.c
+@@ -947,13 +947,17 @@ make_forecast(plugin_data *data)
+ GtkCssProvider *provider = gtk_css_provider_new ();
+ gchar *css_string;
+
+- css_string = g_strdup (".forecast-cell.lightbg { background-color: rgba(0, 0, 0, 0.2); }"
+- ".forecast-cell.darkbg { background-color: rgba(0, 0, 0, 0.4); }");
++ GtkStyleContext *ctx;
++
++ css_string = g_strdup (".forecast-cell.lightbg { background-color: rgba(0, 0, 0, 0.05); }"
++ ".forecast-cell.darkbg { background-color: rgba(0, 0, 0, 0.6); }");
+
+ gtk_css_provider_load_from_data (provider, css_string, -1, NULL);
+ gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+ grid = gtk_grid_new ();
++ ctx = gtk_widget_get_style_context (GTK_WIDGET (grid));
++ gtk_style_context_add_class (ctx, "background");
+
+ gtk_grid_set_row_spacing(GTK_GRID (grid), 0);
+ gtk_grid_set_column_spacing(GTK_GRID (grid), 0);
+--
+GitLab
+
More information about the arch-commits
mailing list