[GH-ISSUE #211] idea for the future: color in actions #149

Open
opened 2026-03-02 15:56:13 +03:00 by kerem · 4 comments
Owner

Originally created by @Roni-Neto on GitHub (Aug 23, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/211

Option to enable or disable action background colors

Captura de Tela (262)
Captura de Tela (263)

Originally created by @Roni-Neto on GitHub (Aug 23, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/211 Option to enable or disable action background colors ![Captura de Tela (262)](https://user-images.githubusercontent.com/54395471/63572869-4b25ae80-c55a-11e9-9cc2-4392c3879258.png) ![Captura de Tela (263)](https://user-images.githubusercontent.com/54395471/63572870-4b25ae80-c55a-11e9-878b-b693457b01a4.png)
Author
Owner

@EV-soft commented on GitHub (Aug 23, 2019):

Maybe my version is something you can use:

My latest improvements::
Upgraded icons: font-awesome/4.7.0 to font-awesome/5.9.0
Added column 'Ext' so you can sort on file-extension
Corrected count folders
Added several translate: lng('x...') // EV-soft more
Added list about all language codes: SelNew(langList()); (Not in use. Problems when placed in settings...)
(SupportFile: '.FM_language-codes.csv')
Renamed: translation.json to .FM_translation.json
Added warning: "This page needs JavaScript..."
CSS for column output tblcol,fsize (align, width)
Separated buttons [fileSelecting] and [fileHandling] with text: "With selected:"
Added fm_set_msg() to the language translate system like lng()
Show fileTime and more, for files in ZIP/TAR-archives
Color on actions buttons

See the attached ZIP file - Most changes are marked with comments:

TFM_EV-soft.zip

<!-- gh-comment-id:524327739 --> @EV-soft commented on GitHub (Aug 23, 2019): Maybe my version is something you can use: **My latest improvements::** Upgraded icons: font-awesome/4.7.0 to font-awesome/5.9.0 Added column 'Ext' so you can sort on file-extension Corrected count folders Added several translate: lng('x...') // EV-soft more Added list about all language codes: SelNew(langList()); (Not in use. Problems when placed in settings...) (SupportFile: '.FM_language-codes.csv') Renamed: translation.json to .FM_translation.json Added warning: "This page needs JavaScript..." CSS for column output tblcol,fsize (align, width) Separated buttons [fileSelecting] and [fileHandling] with text: "With selected:" Added fm_set_msg() to the language translate system like lng() Show fileTime and more, for files in ZIP/TAR-archives Color on actions buttons See the attached ZIP file - Most changes are marked with comments: [TFM_EV-soft.zip](https://github.com/prasathmani/tinyfilemanager/files/3534964/TFM_EV-soft.zip)
Author
Owner

@Roni-Neto commented on GitHub (Aug 23, 2019):

@EV-soft
can be more customizable, add option to enable or disable stock colors, (Info / ext), "gray bar" of files for every bank as before?

Captura de Tela (264)


"gray bar"
Captura de Tela (266)

<!-- gh-comment-id:524432791 --> @Roni-Neto commented on GitHub (Aug 23, 2019): @EV-soft can be more customizable, add option to enable or disable stock colors, (Info / ext), "gray bar" of files for every bank as before? ![Captura de Tela (264)](https://user-images.githubusercontent.com/54395471/63618461-84920480-c5c2-11e9-895c-b08b2f521725.png) --- > "gray bar" ![Captura de Tela (266)](https://user-images.githubusercontent.com/54395471/63618106-a048db00-c5c1-11e9-8ea1-dbdd132701b7.png)
Author
Owner

@EV-soft commented on GitHub (Aug 24, 2019):

It will cause too many confusing settings.
In my opinion, a better method would be to create themes by editing css

<!-- gh-comment-id:524525852 --> @EV-soft commented on GitHub (Aug 24, 2019): It will cause too many confusing settings. In my opinion, a better method would be to create themes by editing css
Author
Owner

@Roni-Neto commented on GitHub (Aug 24, 2019):

translation from portuguese to english by google translator

@EV-soft

a quick mode for those who don't want to color, people who don't understand much can disable it by changing (on to off) editing ($configcolor343 = on;) to ($configcolor343 = off;)

..............................................................

at the beginning of the code

//on or off
$configcolor343 = on;

.....................................................
below code

} else {
                    $owner = array('name' => '?');
                    $group = array('name' => '?');
                }

I put this

if($configcolor343 == "on"){
echo "<style>
#testclass1120{  }
#testclass1121{ background-color:red; }
#testclass1122{ background-color:yellow; color:black; }
#testclass1123{ background-color:green; }
#testclass1124{  }
#testclass1125{  }
#testclass1128{ background-color:blue; }
#testclass1129{ background-color:blue; }
</style>";
}

in each image I put ( id= )

id="testclass1120"
id="testclass1121"...

example

<i class="fa fa-trash-o" id="testclass1121"></i>

<!-- gh-comment-id:524530712 --> @Roni-Neto commented on GitHub (Aug 24, 2019): > translation from portuguese to english by google translator @EV-soft a quick mode for those who don't want to color, people who don't understand much can disable it by changing (on to off) editing ($configcolor343 = on;) to ($configcolor343 = off;) .............................................................. **at the beginning of the code** ``` //on or off $configcolor343 = on; ``` ..................................................... **below code** ``` } else { $owner = array('name' => '?'); $group = array('name' => '?'); } ``` **I put this** ``` if($configcolor343 == "on"){ echo "<style> #testclass1120{ } #testclass1121{ background-color:red; } #testclass1122{ background-color:yellow; color:black; } #testclass1123{ background-color:green; } #testclass1124{ } #testclass1125{ } #testclass1128{ background-color:blue; } #testclass1129{ background-color:blue; } </style>"; } ``` **in each image I put ( id= )** ``` id="testclass1120" id="testclass1121"... ``` **example** `<i class="fa fa-trash-o" id="testclass1121"></i>`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#149
No description provided.