aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-05-01 21:29:46 +1000
committerRedMatrix <info@friendica.com>2014-05-01 21:29:46 +1000
commit203abae473970b87cc29927f4c2f95b19e290937 (patch)
tree4b7836f6c1e58c65081354af7ac9434e8ca1dea0 /view/theme/redbasic/php
parent8a7571e4f62778b51ffc9fcb25a5ddd1e531a29e (diff)
parent40d8858e5a8de2dfc5b9945607482491ebbdccd7 (diff)
downloadvolse-hubzilla-203abae473970b87cc29927f4c2f95b19e290937.tar.gz
volse-hubzilla-203abae473970b87cc29927f4c2f95b19e290937.tar.bz2
volse-hubzilla-203abae473970b87cc29927f4c2f95b19e290937.zip
Merge pull request #438 from git-marijus/master
revision/redesign of conv_item.tpl
Diffstat (limited to 'view/theme/redbasic/php')
-rw-r--r--view/theme/redbasic/php/config.php3
-rw-r--r--view/theme/redbasic/php/style.php24
2 files changed, 15 insertions, 12 deletions
diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php
index ab819f05b..bd4660c97 100644
--- a/view/theme/redbasic/php/config.php
+++ b/view/theme/redbasic/php/config.php
@@ -20,6 +20,7 @@ function theme_content(&$a) {
$arr['bgcolour'] = get_pconfig(local_user(),'redbasic', 'background_colour' );
$arr['background_image'] = get_pconfig(local_user(),'redbasic', 'background_image' );
$arr['item_colour'] = get_pconfig(local_user(),'redbasic', 'item_colour' );
+ $arr['comment_item_colour'] = get_pconfig(local_user(),'redbasic', 'comment_item_colour' );
$arr['item_opacity'] = get_pconfig(local_user(),'redbasic', 'item_opacity' );
$arr['toolicon_colour'] = get_pconfig(local_user(),'redbasic','toolicon_colour');
$arr['toolicon_activecolour'] = get_pconfig(local_user(),'redbasic','toolicon_activecolour');
@@ -56,6 +57,7 @@ function theme_post(&$a) {
set_pconfig(local_user(), 'redbasic', 'banner_colour', $_POST['redbasic_banner_colour']);
set_pconfig(local_user(), 'redbasic', 'background_image', $_POST['redbasic_background_image']);
set_pconfig(local_user(), 'redbasic', 'item_colour', $_POST['redbasic_item_colour']);
+ set_pconfig(local_user(), 'redbasic', 'comment_item_colour', $_POST['redbasic_comment_item_colour']);
set_pconfig(local_user(), 'redbasic', 'item_opacity', $_POST['redbasic_item_opacity']);
set_pconfig(local_user(), 'redbasic', 'toolicon_colour', $_POST['redbasic_toolicon_colour']);
set_pconfig(local_user(), 'redbasic', 'toolicon_activecolour', $_POST['redbasic_toolicon_activecolour']);
@@ -111,6 +113,7 @@ if(feature_enabled(local_user(),'expert'))
'$bgcolour' => array('redbasic_background_colour', t('Set the background colour'), $arr['bgcolour']),
'$background_image' => array('redbasic_background_image', t('Set the background image'), $arr['background_image']),
'$item_colour' => array('redbasic_item_colour', t('Set the background colour of items'), $arr['item_colour']),
+ '$comment_item_colour' => array('redbasic_comment_item_colour', t('Set the background colour of comments'), $arr['comment_item_colour']),
'$item_opacity' => array('redbasic_item_opacity', t('Set the opacity of items'), $arr['item_opacity']),
'$toolicon_colour' => array('redbasic_toolicon_colour',t('Set the basic colour for item icons'),$arr['toolicon_colour']),
'$toolicon_activecolour' => array('redbasic_toolicon_activecolour',t('Set the hover colour for item icons'),$arr['toolicon_activecolour']),
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 87e0b12bb..95ca5a4fe 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -24,7 +24,8 @@ if(! $a->install) {
$background_image = get_pconfig($uid, "redbasic", "background_image");
$toolicon_colour = get_pconfig($uid,'redbasic','toolicon_colour');
$toolicon_activecolour = get_pconfig($uid,'redbasic','toolicon_activecolour');
- $item_colour = get_pconfig($uid, "redbasic", "item_colour");
+ $item_colour = get_pconfig($uid, "redbasic", "item_colour");
+ $comment_item_colour = get_pconfig($uid, "redbasic", "comment_item_colour");
$item_opacity = get_pconfig($uid, "redbasic", "item_opacity");
$body_font_size = get_pconfig($uid, "redbasic", "body_font_size");
$font_size = get_pconfig($uid, "redbasic", "font_size");
@@ -106,7 +107,7 @@ if(! $a->install) {
if (! $navtabs_bgchover)
$navtabs_bgchover = "#eee";
if (! $link_colour)
- $link_colour = "#0080ff";
+ $link_colour = "#428BCA";
if (! $banner_colour)
$banner_colour = "#fff";
if (! $search_background)
@@ -116,7 +117,9 @@ if(! $a->install) {
if (! $background_image)
$background_image ='';
if (! $item_colour)
- $item_colour = "#fdfdfd";
+ $item_colour = "rgba(238,238,238,0.8)";
+ if (! $comment_item_colour)
+ $comment_item_colour = "rgba(254,254,254,0.4)";
if (! $toolicon_colour)
$toolicon_colour = '#777';
if (! $toolicon_activecolour)
@@ -124,7 +127,7 @@ if(! $a->install) {
if (! $item_opacity)
$item_opacity = "1";
if (! $item_bordercolour)
- $item_bordercolour = "#f4f4f4";
+ $item_bordercolour = $item_colour;
if (! $font_size)
$font_size = "1.0em";
if (! $body_font_size)
@@ -152,7 +155,7 @@ if(! $a->install) {
if (! $notif_itemhovercolour)
$notif_itemhovercolour = "#000";
if (! $editbuttons_bgcolour)
- $editbuttons_bgcolour = "#fff";
+ $editbuttons_bgcolour = "transparent";
if (! $editbuttons_bordercolour)
$editbuttons_bordercolour = "#ccc";
if (! $editbuttons_bghover)
@@ -194,7 +197,7 @@ if(! $a->install) {
if (! $input_decohover)
$input_decohover = "none";
if (! $radius)
- $radius = "0";
+ $radius = "4";
if (! $shadow)
$shadow = "0";
if(! $active_colour)
@@ -212,14 +215,10 @@ if(! $a->install) {
$abookself_bgcolour = "#ffdddd";
if(! $top_photo)
$top_photo = '48px';
- $pmenu_top = intval($top_photo) - 16 . 'px';
- $wwtop = intval($top_photo) - 15 . 'px';
- $comment_indent = intval($top_photo) + 10 . 'px';
-
+ if(! $comment_indent)
+ $comment_indent = '0px';
if(! $reply_photo)
$reply_photo = '32px';
- $pmenu_reply = intval($reply_photo) - 16 . 'px';
-
if($nav_min_opacity === false || $nav_min_opacity === '') {
$nav_float_min_opacity = 1.0;
$nav_percent_min_opacity = 100;
@@ -259,6 +258,7 @@ $options = array (
'$bgcolour' => $bgcolour,
'$background_image' => $background_image,
'$item_colour' => $item_colour,
+'$comment_item_colour' => $comment_item_colour,
'$item_opacity' => $item_opacity,
'$item_bordercolour' => $item_bordercolour,
'$toolicon_colour' => $toolicon_colour,